rollback
MOVES MONEYIDEMPOTENTRETRYABLE
Return the bet named in reference_transaction_id. Rollbacks may arrive after the session closed.
we send
{
"action": "rollback",
"transaction_id": "pragmatic:5501934:rollback",
"reference_transaction_id": "pragmatic:5501934",
"session_id": "2222aaaa-…",
"round_id": "7200311",
"player_id": "p-1",
"game_id": "vs20fruitsw",
"currency": "EUR",
"amount": "1.50"
}you answer 200
{ "balance": "100.00", "transaction_id": "op-4473" }| Case | Answer | Resulting balance |
|---|---|---|
| The bet was debited | 200 with the new balance | balance + bet |
| Same rollback again | 200 with the first answer | unchanged |
| You never saw the bet | 200 with the current balance; remember the id as cancelled | unchanged |
| That bet arrives after its rollback | 4xx: refuse it | unchanged |
Two kinds reach you: a provider cancelling a round, and our own rollback after your wallet stayed silent on a bet or win. Ours carries "<transaction_id>:rollback" as its id and the silent movement as reference_transaction_id.
