ticketBets API

Risk management endpoins

Bets API endpoints are used as a part of risk management service.

The most important endpoints are below.

Bet Placement Endpoint

Can be used to send bets to Odds88.

The bet will be validated according to related event(s), market(s), selection(s) statuses, odds and liabilities.

The response will contain a recommendation whether to accept or reject the bet.

circle-exclamation
circle-exclamation
circle-info

playerId must be consistent for the same player regardless of the currency that is used.

Places bet from specific player (multi-currency).

put
Authorizations
HTTPRequired

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Path parameters
playerIdstringRequired

Id of player which places a bet.

Body

Represents bet request.

Responses
chevron-right
200

Returns results of bet placement request.

put
/api/players/{playerId}/Bets/V2

Max Bet Endpoint

Can be used to get the max possible value for a particular bet for a particular player.

The bet will be validated according to related event(s), market(s), selection(s) statuses, odds and liabilities.

circle-info

The bet will not be saved in Odds88 system, so this endpoint can be called before locking funds on the player's account.

Gets max possible bet size for the specific player (multi-currency).

post
Authorizations
HTTPRequired

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Path parameters
playerIdstringRequired

Id of player which places a bet.

Body

Represents bet request.

Responses
chevron-right
200

Returns results of max bet calculation.

post
/api/players/{playerId}/Bets/V2/max

Bet Builder Price Endpoint

Allows to get bet builder odds for the provided combination.

The endpoint will respond with potential odds or rejection information.

Gets bet builder price.

post
Authorizations
HTTPRequired

JWT Authorization header using the Bearer scheme. Example: "Authorization: Bearer {token}"

Path parameters
playerIdstringRequired

Id of player which placed a bet.

Body

Represents BetBuilder price request.

Responses
chevron-right
200

Returns price for potential betbuilder bet.

post
/api/players/{playerId}/Bets/bet-builder-price

Last updated