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" }| Case | Answer | Resulting balance |
|---|---|---|
| Accepted | 200 with the new balance | balance − amount |
| Same transaction_id again | 200 with the first answer | unchanged |
| Balance too low | 4xx INSUFFICIENT_FUNDS | unchanged |
| Over a limit you apply | 4xx BET_LIMIT | unchanged |
| Player blocked or self-excluded | 4xx PLAYER_BLOCKED | unchanged |
| Carries free_spins_id | take nothing, 200 with the balance | unchanged |
| Already cancelled by an earlier rollback | 4xx: the money was already decided | unchanged |
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.
