This API request enables the operator to get the available balance of a player.
GetBalance() Request
| Type | Input |
|---|---|
| HTTP Method | POST |
| API URL | https://<API_BASE_URL>/get_balance |
| Headers | "Content-Type": "application/json" |
| POST Parameters | json object e.g.:{ |
| Parameters | Type | Description |
|---|---|---|
token | String | Unique string assigned to each player |
account_id | String | Account ID of the player |
GetBalance() Response + Example
{
"status": 0,
"account_id": "123123",
"country": "US",
"token": "3c2ef39d02581e2db3ddf6c713e83e05",
"balance": 12345,
"currency": "USD",
"bonus_amount": "10"
}
| Object/Key in Response Object | Type | Description |
|---|---|---|
status | Integer | Response status |
| account_id | String | Unique ID of player |
| country | String | Country of the player in ISO format |
| token | String | Unique string assigned to each player (session ID) |
| balance | Integer | Balance of the player. Balance should be in cents (balance* 100) |
| currency | String | Currency of the player |
| bonus_amount | Integer | Bonus amount available in player’s wallet. If this amount is not available please send 0 value. |