Skip to content
Wallet integration / bet
Wallet integration

bet

MOVES MONEYIDEMPOTENTRETRYABLE

Debit amount. The round starts with the bet your wallet accepted.

we send
{
  "action": "bet",
  "transaction_id": "pragmatic:5501934",
  "reference_transaction_id": null,
  "session_id": "2222aaaa-…",
  "round_id": "7200311",
  "player_id": "p-1",
  "game_id": "vs20fruitsw",
  "currency": "EUR",
  "amount": "1.50"
}
you answer 200
{ "balance": "98.50", "transaction_id": "op-4471" }
CaseAnswerResulting balance
Accepted200 with the new balancebalance − amount
Same transaction_id again200 with the first answerunchanged
Balance too low4xx INSUFFICIENT_FUNDSunchanged
Over a limit you apply4xx BET_LIMITunchanged
Player blocked or self-excluded4xx PLAYER_BLOCKEDunchanged
Carries free_spins_idtake nothing, 200 with the balanceunchanged
Already cancelled by an earlier rollback4xx: the money was already decidedunchanged

A refused bet opens no round on our side. If you are silent, we retry with the same transaction_id and then roll the bet back.