Rollback
This method rollbacks transaction with provider transaction ID.
| path | /rollback |
|---|---|
| method | POST |
| Content-Type | application/json |
| headers | X-Client-Id, X-Client-TS, X-Client-Signature |
Request
- Parameters
- Example
| Parameter | Description |
|---|---|
| user_id | String - Player's id on the operator's side |
| amount | Number - Amount to be withdrawn from the player's wallet |
| currency | String - Game currency. (currency code) |
| provider | String - Game provider |
| provider_tx_id | String - The transaction ID assigned by provider |
| rollback_provider_tx_id | String - Provider transaction ID which should be rollbacked |
| game | String - Identifies specific game. (game identificator) |
| action | bet / rain / gift - Reason for amount withdrawal |
| action_id | String ID of action in game, which depends on game and “action” |
| session_token | String - Token generated by provider for current game session |
| platform | Enum - mobile desktop |
{
"session_token": "01d9c4ce7180589176d7f3f4f7b7581243bd450dad44f33029196c3bfc5e9771",
"amount": 200,
"game": "avionix",
"user_id": "180",
"provider": "xploora",
"provider_tx_id": "78974",
"rollback_provider_tx_id": "34333",
"action_id": "3785",
"action": "bet"
}
Response
- Parameters
- Success Example
- Duplication Example
- Error Example
| Parameter | Description |
|---|---|
| code | Number - response status code |
| message | String - response explanation |
| data | Object
|
{
"code": 200,
"message": "ok",
"data": {
"user_id": "223344",
"operator_tx_id": "234234",
"provider": "xploora",
"provider_tx_id": "78974",
"old_balance": 2000,
"new_balance": 2019,
"currency": "GEL"
}
}
{
"code": 409,
"message": "OK",
"data": {
"operator_tx_id": "563",
"new_balance": 49872,
"old_balance": 49772,
"user_id": "180",
"currency": "USD",
"provider": "xploora",
"provider_tx_id": "95978"
}
}
{
"code": 401,
"message": "Invalid user",
"data": {}
}