/
v3.0.11Get access

createBetBookV2

Generates a booking ID based on the provided bets

Request parameters:

Name
DescriptionTypeValuesDefault
clientId
The id of the userstring--
betslipUid
Betslip unique identifierstring--
cashDeskId
This parameter identifies a specific Physical Betting Shop or Retail Branch associated with a player’s accountstring--
bets
An array of bet objects to includearray--
└─ bet
A single bet object containing bet detailsobject-
└─ BetType
The type of bet (e.g., single, multiple, system)number--
└─ Amount
The wagered amount for the betstring--
└─ Selections
The selection details for the betobject-
└─ SelectionId
Unique identifier for the selected outcomenumber--
└─ Price
The odds or price associated with the selectionnumber--
└─ BetBuilderMatchId
The game id of the event participating in the bet builder selectionnumber--

Call example:

createBetBookV2({
  bets: [{
    BetType: 1,
    Amount: '',
    Selections: [{
      SelectionId: 5752325813,
      Price: 1.19
    }]
  }]
})

Response examples:

{
  code: 0,
  rid: 557863106,
  data: {
    result: 0,
    result_text: null,
    details: {
      '$id': '1',
      Id: 981723,
      PartnerId: 692,
      Data: '[{\'Amount\':0.0,\'BetType\':2,\'Selections\':[{\'SelectionId\':6606330951},{\'SelectionId\':6546043672},{\'SelectionId\':6612189255}]}]',
      Modified: '0001-01-01T00:00:00+00:00',
      SessionId: 0,
      ClientId: 349444180
    }
  }
}

Response parameters:

NameDescriptionTypeValues
Id
The generated booking idnumber-
PartnerId
The id of the partnernumber-
ClientId
The id of the usernumber-
Data
The stringified JSON data of the booked eventsstring-
$id
This is a metadata property used for JSON object referencingstring-
Modified
This is a timestamp representing the default minimum value for a date.string-
SessionId
A numerical identifier for a user's session, currently set to its default fallback valuenumber-