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

FieldTypeDescriptionComment
idStringPartner transaction id
customerIdStringPartner customer id.This must also be present on the bet level since RBHQ also handles bets without betslips by configuration.
typeStringThe type of bet [RUNNING_DOUBLE, TREBLE, DAILY_DOUBLE, SINGLE, MULTI, QUADRELLA]
submissionTypeString[PRICE_REQUEST]
submissionTimeStringISO fomat
legsList[LegSubmission]

Within the List for legs in BetSubmission - submit the legsSubmission for each leg

LegSubmission

FieldTypeDescriptionComment
idStringPartner transaction id
typeStringThe type of the leg [WIN, PLACE]More types can come later. E.g EACH_WAY, TRIFECTA,…
eventIdStringThe unique Racebook event id.Provided by RBHQ in event creation
submissionTypeString[PRICE_REQUEST]
selectionSlotsList[SelectionSlot]The object specifying the selectionRacing bets only require SELECTION slots. WIN and PLACE only have 1 selection slot.
productTypeStringThe product type of the bet [FIXED_ODDS, PARIMUTUEL]

Within the List for SelectionSlot in LegSubmission - submit as per below definition

SelectionSlot

FieldTypeDescriptionComment
selectionsList[String]List of Selections for position
typeString[SELECTION]

The Bet Pricing Decision response will return the following fields as per the example.

FieldTypeDescriptionComment
betIdStringid of the incoming bet
priceStringSuggested 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"
    }
]