Withdraw
This request is used to withdraw a given amount from a player's wallet
| path | /withdraw |
|---|---|
| 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 |
| 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 |
{
"user_id": "180",
"session_token": "01d9c4ce7180589176d7f3f4f7b7581243bd450dad44f33029196c3bfc5e9771",
"currency": "USD",
"amount": 100,
"game": "dice",
"action_id": "3785",
"action": "bet",
"provider": "xploora",
"provider_tx_id": "95974",
"platform": "desktop"
}
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": {
"operator_tx_id": "559",
"new_balance": 49882,
"old_balance": 49982,
"user_id": "180",
"currency": "USD",
"provider": "xploora",
"provider_tx_id": "95974"
}
}
{
"code": 409,
"message": "ok",
"data": {
"operator_tx_id": "559",
"new_balance": 49882,
"old_balance": 49982,
"user_id": "180",
"currency": "USD",
"provider": "xploora",
"provider_tx_id": "95974"
}
}
{
"code": 402,
"message": "Insufficient fund"
}