Bet Placement

Event Key

ootb_sports_bet_placed

This event should be sent each time a sports bet is placed and approved by the operator.

Event KeyEvent NameType
ootb_sports_bet_placedOOTB Sports Bet PlacedSimple event

Event Structure

The mandatory properties (tenant, timestamp, event, and customer) are required for all events and documented in detail on the Mandatory Properties page.Below is the JSON structure for the context-specific properties of the Sports Bet Placed event:

{
  "context": {
    "ootb_betslip_key": "cniowfh0193duf879cn2",
    "ootb_bet_date_time": "2024-05-27T10:30:00Z",
    "ootb_betslip_status": "open",
    "ootb_platform": "iOS",
    "ootb_channel": "mobile",
    "ootb_license": "licenseXYZ",
    "ootb_bet_key": "selection789",
    "ootb_bet_stake": 100.00,
    "ootb_betslip_stake": 100.00,
    "ootb_bet_bonus": 0.00,
    "ootb_bet_sel_stake": 50.00,
    "ootb_bet_sel_bonus": 0.00,
    "ootb_is_live": True/False,
    "ootb_odds_number": 5,
    "ootb_odds_denominator": 1,
    "ootb_odds_decimal_price": 6.00,
    "ootb_odds_american_price": -120,
    "ootb_selection_key": "3647893264",
    "ootb_selection_name": "Manchester United",
    "ootb_market_key": "3647893264",
    "ootb_market_name": "Match Result",
    "ootb_event_date_time": "2024-05-27T10:30:00Z",
    "ootb_event_key": "67967899",
    "ootb_event_name": "Manchester United vs Liverpool",
    "ootb_meeting_key": "67839642",
    "ootb_meeting_name": "Premier League",
    "ootb_class_key": "67839642",
    "ootb_class_name": "English",
    "ootb_discipline_key": "13",
    "ootb_discipline_name": "football",
    "ootb_leg_num": 1,
    "ootb_leg_type": "To win",
    "ootb_each_way": "Yes",
    "ootb_bet_type": "Multiple",
    "ootb_is_free": false,
    "ootb_num_selections": 2,
    "ootb_brand": "skin123",
    "ootb_resettle": True/False
  }
}

Parameters

📘

Events-based Integration (EBI): parameter classification

The Events-based Integration column shows how each parameter is treated when you onboard using an Events-based Integration:

  • Mandatory — required for the event to be ingested and processed correctly.
  • Mandatory if required for the execution channel integration — required only when the relevant execution channel (e.g., email, SMS, push, WhatsApp) is part of your integration.
  • Enrichment- used for out-of-the-box attribute — not required, but when provided it powers an Optimove out-of-the-box attribute.
  • Optional — accepted and stored when provided; not required and not tied to an OOTB attribute.
Parameter KeyParameter NameTypeDescriptionMandatory for Opti-X?Events-based Integration
ootb_betslip_keyBet Slip KeyStringIdentifier for the bet slip or ticket (group of bets).YesMandatory
ootb_bet_date_timeBet Date TimeTimestampUTC timestamp when the bet was placed.YesMandatory
ootb_betslip_statusBet Slip StatusStringStatus of the bet slip (open, win, loss).YesEnrichment- used for out-of-the-box attribute
ootb_platformPlatformStringPlatform from which the bet was placed (e.g., iOS, Android).NoEnrichment- used for out-of-the-box attribute
ootb_channelChannelStringChannel used for the bet (e.g., mobile, web).NoOptional
ootb_licenseLicenseStringRegulatory license identifier.NoOptional
ootb_bet_keyBet KeyStringUnique identifier for the individual bet.YesMandatory
ootb_bet_stakeBet StakeNumberTotal cash stake amount for the bet.YesEnrichment- used for out-of-the-box attribute
ootb_betslip_stakeBet Slip StakeNumberTotal stake amount for the bet slip (cash + bonus)Mandatory
ootb_bet_bonusBet BonusNumberBonus amount included in the stake (e.g., free bet).NoEnrichment- used for out-of-the-box attribute
ootb_bet_sel_stakeBet Selection StakeNumberStake amount allocated to this selection.NoOptional
ootb_bet_sel_bonusBet Selection BonusNumberBonus amount allocated to this selection.NoOptional
ootb_is_liveIs LiveBooleanTrue if the bet was placed during a live event; False otherwise.NoEnrichment- used for out-of-the-box attribute
ootb_odds_numberOdds NumeratorNumberFractional numerator for the selection odds.NoOptional
ootb_odds_denominatorOdds DenominatorNumberFractional denominator for the selection odds.NoOptional
ootb_odds_decimal_priceDecimal Odds PriceNumberDecimal (European) price for the selection odds.YesEnrichment- used for out-of-the-box attribute
ootb_odds_american_priceAmerican Odds PriceNumberAmerican odds price for the selection odds.NoEnrichment- used for out-of-the-box attribute
ootb_selection_keySelection KeyStringUnique ID for the selection in the operator’s database.YesMandatory
ootb_selection_nameSelection NameStringName of the chosen selection (e.g., Manchester United).YesEnrichment- used for out-of-the-box attribute
ootb_market_keyMarket KeyStringUnique ID for the market in the operator’s database.YesOptional
ootb_market_nameMarket NameStringName of the market (e.g., Match Result).YesOptional
ootb_event_date_timeEvent Date TimeTimestampUTC timestamp of the scheduled start time of the sporting event.YesOptional
ootb_event_keyEvent KeyStringUnique ID for the sporting event.YesOptional
ootb_event_nameEvent NameStringName of the sporting event (e.g., Man Utd vs Liverpool).YesOptional
ootb_meeting_keyMeeting KeyStringUnique ID for the competition or league.YesOptional
ootb_meeting_nameMeeting NameStringName of the competition (e.g., Premier League).YesEnrichment- used for out-of-the-box attribute
ootb_class_keyClass KeyStringUnique ID for the competition category.YesOptional
ootb_class_nameClass NameStringName of the competition category (e.g., English).YesOptional
ootb_discipline_keyDiscipline KeyStringUnique ID for the sport.YesOptional
ootb_discipline_nameDiscipline NameStringName of the sport (e.g., football).YesEnrichment- used for out-of-the-box attribute
ootb_leg_numLeg NumberNumberPosition of this selection within a multi-leg bet.YesOptional
ootb_leg_typeLeg TypeStringType of leg (e.g., To win, Handicap, Outright).NoOptional
ootb_each_wayEach WayBooleanYes for win & place bets (common in horse racing).NoOptional
ootb_bet_typeBet TypeStringBet structure (Multiple, Single, System, Bet Builder).YesEnrichment- used for out-of-the-box attribute
ootb_is_freeIs Free BetBooleantrue if the bet was funded solely by bonus credit; false otherwise.NoEnrichment- used for out-of-the-box attribute
ootb_num_selectionsNumber of SelectionsNumberNumber of selections in the bet (e.g., 2 for a double).YesOptional
ootb_brandBrandStringBrand or “skin” under which the bet was placed.NoOptional
ootb_resettleResettle FlagBooleanIdentifier of whether the bet was resettled.NoOptional


Did this page help you?