bet
POST
{wallet_url}
Debit amount. The round starts with the bet your wallet accepted.
SignedSandboxProductionaction: betWe call youMOVES MONEYIDEMPOTENTRETRYABLE
Request · 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"
}Response 200 · you answer
{ "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 |
| Its id was already rolled back | 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. A provider's bet that arrives after the provider rolled it back is refused by us and never reaches you; the last row is for safety.
