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.

idstring · nullableOptional

Unique request id (in the client's system);

priceChangeinteger · enumOptional

Types of price change acceptance.

  • 0 - None
  • 1 - Any
  • 2 - Higher
Possible values:
alternativeOddsIdstring · nullableOptional

ID of alternative odds offer in case if liability was exceeded

alternativePricenumber · double · nullableOptional

Alternative odds offer value

customPayoutMultipliernumber · double · nullableOptional

Custom payout multiplier

betTypeinteger · int32Optional

Bet Type. (Standard - 0, Pickem - 1)

freeBetTypeinteger · int32Optional

Free Bet Type. (NotFree = 0, BasicFreeBet = 1)

Responses
chevron-right
200

Returns results of bet placement request.

responseCodeinteger · 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.

idstring · nullableOptional

Unique request id (in the client's system);

priceChangeinteger · enumOptional

Types of price change acceptance.

  • 0 - None
  • 1 - Any
  • 2 - Higher
Possible values:
alternativeOddsIdstring · nullableOptional

ID of alternative odds offer in case if liability was exceeded

alternativePricenumber · double · nullableOptional

Alternative odds offer value

customPayoutMultipliernumber · double · nullableOptional

Custom payout multiplier

betTypeinteger · int32Optional

Bet Type. (Standard - 0, Pickem - 1)

freeBetTypeinteger · int32Optional

Free Bet Type. (NotFree = 0, BasicFreeBet = 1)

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.

requestIdstring · min: 1Required

Id of the requests.

segmentIdinteger · int32 · min: 1 · max: 9223372036854776000Required

Segment of the price requesting player.

eventIdinteger · int64 · min: 1 · max: 9223372036854776000Required

Event id price is requested for.

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