Cancel
For revoking bet transaction call /cancel.
Request Example
POST /cancel HTTP/1.1
Content-Type: application/json
https://stg.otkgaming.com/cancel
{
"externalToken" : "valid-session-token",
"playerId" : "abc123",
"gameId" : "abc123",
"transactionId" : "abc123"
}
| Property Name | Descriptio | Type | Notes |
|---|---|---|---|
| externalToken | player’s session token | string(255) | value passed upon game launch as query parameter |
| playerId | unique player identifier | string(100) | unique player’s identifier (received from platform on /info call) |
| gameId | game identifier on game provider side | string(255) | game id where bet was placed (same as was passed during product launch) |
| transactionId | game transaction id | string(255) | unique transaction id on game provider’s side |
Response Example
https://stg.otkgaming.com/cancel
{
"transactionId" : "abc123",
"externalTrxId" : "abc123",
"balance" : 9000
}
| Property Name | Descriptio | Type | Notes |
|---|---|---|---|
| transactionId | game provider’s transaction id | string(255) | same as passed to request |
| externalTrxId | committed transaction id on Platform side | string(255) | transaction id on Platform side |
| balance | player’s remaining balance | number | in minor units(mostly cents) |