Rollback Bet
Method to perform rollback of the previous bet. rollbackbet is sent when a placebet request fails with unexpected error or times out.
If the transaction with the originalTransactionId is not found, a success response should be returned to indicate that the initial bet never reached PAM.
Request
- Path: /rollbackbet
- Retried: Yes
| Field | Type | Description |
|---|---|---|
transactionId | Unique transaction identifier. The basis of idempotency. | |
originalTransactionId | Transaction identifier of the bet transaction that is a subject of rollback | |
betId | string (required) | Unique identifier of bet |
playerId | string (required) | Unique player identifier in Operator’s PAM |
sessionId | string (required) | Unique session identifier. Sent in any subsequent calls |
Example RollbackBet request
POST https://{wallet base url}/rollbackbet HTTP/1.1
Content-Type: application/json
{
"transactionId": "7229be34-8e56-4fe5-a837-71bcd041c46c",
"originalTransactionId": "f87cf737-215c-4bb4-9d1a-c71c926bdc4a",
"betId": "3937da17-b20b-4c3b-90ea-817dd74987e5",
"playerId": "2b84aabc-e2cb-4fbc-a038-e2123e0a0311",
"sessionId": "a5fee2a1-45a2-41f2-9e08-f2101bf1592a",
} Response
| Field | Type | Description |
|---|---|---|
balance | decimal (required) | Player’s current balance in player’s currency |
currency | string (required) | Currency code for player’s balance |
walletTransactionId | string | Wallet (PAM) transaction reference |
Example RollbackBet response
{
"balance": 100.00,
"currency": "USD",
"walletTransactionId": "c744cd1e-e1c3-4f6d-9905-752ab37a3ddd"
}