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.

responseCodeall ofOptional

1 = Success

2 = FormatError

3 = PrecisionMismatch

4 = UnsupportedCurrency

Possible values:
integer · enumOptional

1 = Success

2 = FormatError

3 = PrecisionMismatch

4 = UnsupportedCurrency

Possible values:
errorMessagestring · nullableOptional
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.

rejectReasoninteger · int32Optional

Information about rejection cause. (None - 0, UnknownError - 1, PriceChanged - 2, LimitExceeded - 3 , SelectionNotFound - 4 etc.)

amountinteger · int64Optional

Max bet amount in local currency

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.

Represents response to a BetBuilder price request.

requestIdstring · nullableOptional

Id of the price request.

pricenumber · double · nullableOptional

Suggested price for the BetBuilder request.

timeStampstring · date-timeOptional

Time stamp of the request.

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

Last updated