Skip to main content

Get Bet Slip and Validate Token

/betSlip

The Bet Slip API extends the standard validateToken request by returning the layer's bet slip data.

This endpoint is used in Simulatta to retrieve active bets associated with the Player session.


Bet Slip Request

The request structure is identical to validateToken.

ParameterTypeDescriptionRequired
merchantIdUUIDMerchant identifierYes
timestampLongUNIX timestamp in millisecondsYes
authTokenStringGame session identifierYes
hashStringHMAC SHA256 signature used to verify the requestYes

Hash Fields

The hash is calculated by concatenating the following fields in the exact order:

  • merchantId
  • timestamp

For details on how the hash is generated, see Hash Algorithm.

Request Example

{
"merchantId": "21385394-6dda-4171-a003-02fa4a975643",
"timestamp": 1709289932725,
"authToken": "b5e10b6b-4d88-475c-9496-a461052a8448",
"hash": "288db34c0f1eb6e9c11f38ff2feb90d0"
}

Bet Slip Response

ParameterTypeDescriptionRequired
errorCodeIntegerError code (default 0, indicates success)No
errorTextStringError messageNo
playerIdStringMerchant Player identifierYes
balanceDecimalPlayer balanceYes
currencyStringCurrency code (ISO 4217)Yes
betSlipList<Bet>Bet Slip Item data, check Bet tableYes
usernameStringPlayer usernameNo
nicknameStringPlayer nicknameNo
firstNameStringPlayer first nameNo
lastNameStringPlayer last nameNo
genderStringPlayer genderNo
emailStringPlayer email addressNo
phoneStringPlayer phone numberNo
ipAddressStringPlayer IP addressNo
languageStringPreferred language (ISO 639-3, e.g. ENG)No
devicePlatformStringDevice platform (e.g. Desktop, Mobile)No
addressStringPlayer addressNo
cityStringPlayer cityNo
countryStringCountry code (ISO 3166)No
testBooleanIndicates whether the Player is a test userYes

Bet Object

ParameterTypeDescriptionRequired
sportIdStringSport identifierYes
sportNameStringSport nameYes
betSlipIdStringBet identifier (Merchant side)No
matchNameStringMatch nameYes
matchIdStringMatch identifierYes
competitionIdStringCompetition identifierYes
competitionNameStringCompetition nameYes
marketIdStringMarket identifierYes
marketNameStringMarket descriptionYes
marketOptionIdStringOption identifierYes
marketOptionNameStringSelected market option nameYes
oddDoubleBetting odd for the selected market optionYes
marginDoubleMargin for the oddsRequired for specific markets like over/under
homeTeamStringName of the home teamYes
awayTeamStringName of the away teamYes

Response Example

{
"errorCode": 0,
"errorText": "",
"playerId": "c8d9e0f1-2345-4a6b-8c9d-0e1f2a3b4c5d",
"test": false,
"balance": 120.5,
"currency": "EUR",
"betSlip": [
{
"sportId": "1",
"sportName": "Football",
"betSlipId": "915259f2-0412-478d-bb32-b08d02f71a0c",
"matchName": "Monaco - Crvena Zvezda",
"matchId": "1234",
"competitionId": "10",
"competitionName": "UEFA - Champions League",
"marketId": "1",
"marketName": "The Match will end with Draw result",
"marketOptionId": "2",
"marketOptionName": "Draw",
"odd": 1.38,
"margin": null,
"homeTeam": "Monaco",
"awayTeam": "Crvena Zvezda"
},
{
"sportId": "2",
"sportName": "Basketball",
"betSlipId": "a7f8a612-d391-4d9b-beb2-efa87f1b5a3d",
"matchName": "Lakers - Celtics",
"matchId": "5678",
"competitionId": "20",
"competitionName": "NBA - Finals",
"marketId": "3",
"marketName": "Total Points Over/Under",
"marketOptionId": "5",
"marketOptionName": "Over 215.5",
"odd": 1.95,
"margin": 215.5,
"homeTeam": "Lakers",
"awayTeam": "Celtics"
}
]
}