Deposit
This request is used to deposit a given amount from a player's wallet
| path | /deposit |
|---|---|
| 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 withdrawed 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 - 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 |
| withdraw_provider_tx_id optional | String - Provider id of withdrawn transaction, to which belongs current deposit transaction. |
{
"session_token": "d8409be9500b369d564b90e84c53d3b3a39f272bb0e5bb1f1c8e3793875727f7",
"amount": 100,
"game": "dice",
"user_id": "180",
"action_id": "39078",
"action": "bet",
"provider": "xploora",
"provider_tx_id": "95978",
"currency": "USD",
"platform": "desktop",
"withdraw_provider_tx_id": "32132"
}
Response
- Parameters
- Success Example
- Duplication Example
- Error Example
| Parameter | Description |
|---|---|
| code | Number - response statuscode |
| message | String - response explanation |
| data | Object
|
{
"code": 200,
"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": 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": {}
}