Skip to content
Wallet integration / rollback
Wallet integration

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" }
CaseAnswerResulting balance
The bet was debited200 with the new balancebalance + bet
Same rollback again200 with the first answerunchanged
You never saw the bet200 with the current balance; remember the id as cancelledunchanged
That bet arrives after its rollback4xx: refuse itunchanged

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.