REST POST call
https://[Partner-Name].racebookhq.com/api/host/bets/price
The Bet Pricing Request API sends back recommended pricing for the bet.
Partner can use these details to display the information to the customer on the betslip.
The following is the definition for the Bet Pricing API
BetSubmission
Field | Type | Description | Comment |
---|---|---|---|
id | String | Partner transaction id | |
customerId | String | Partner customer id. | This must also be present on the bet level since RBHQ also handles bets without betslips by configuration. |
type | String | The type of bet [RUNNING_DOUBLE, TREBLE, DAILY_DOUBLE, SINGLE, MULTI, QUADRELLA] | |
submissionType | String | [PRICE_REQUEST] | |
submissionTime | String | ISO fomat | |
legs | List[LegSubmission] |
Within the List for legs in BetSubmission - submit the legsSubmission for each leg
LegSubmission
Field | Type | Description | Comment |
---|---|---|---|
id | String | Partner transaction id | |
type | String | The type of the leg [WIN, PLACE] | More types can come later. E.g EACH_WAY, TRIFECTA,… |
eventId | String | The unique Racebook event id. | Provided by RBHQ in event creation |
submissionType | String | [PRICE_REQUEST] | |
selectionSlots | List[SelectionSlot] | The object specifying the selection | Racing bets only require SELECTION slots. WIN and PLACE only have 1 selection slot. |
productType | String | The product type of the bet [FIXED_ODDS, PARIMUTUEL] |
Within the List for SelectionSlot in LegSubmission - submit as per below definition
SelectionSlot
Field | Type | Description | Comment |
---|---|---|---|
selections | List[String] | List of Selections for position | |
type | String | [SELECTION] |
The Bet Pricing Decision response will return the following fields as per the example.
Field | Type | Description | Comment |
---|---|---|---|
betId | String | id of the incoming bet | |
price | String | Suggested price |
[
{
"id": "transaction_1",
"customerId": "customer_1",
"type": "SINGLE",
"submissionType" : "PRICE_REQUEST",
"submissionTime": "2023-08-06T01:07:00.000000+00:00",
"legs": [
{
"id": "transient_1",
"type": "SAME_RACE_MULTI",
"eventId": "1390344:5",
"selectionSlots": [
{
"selections": [
],
"type": "SELECTION"
},
{
"selections": [
"1", "2"
],
"type": "SELECTION"
},
{
"selections": [
],
"type": "SELECTION"
},
{
"selections": [
"8"
],
"type": "SELECTION"
}
],
"submissionType" : "PRICE_REQUEST",
"productType": "FIXED_ODDS"
}
]
}
]
[
{
"betId": "transaction_1",
"price": "15.61"
}
]