The parameters of this API request would be token / session_id and the player’s account ID. The response would contain the details of player balance.
GetBalance() Request
| Type | Input |
|---|---|
| HTTP Method | POST |
| API URL | Provided by Operator |
| 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": 1,
"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 | Account ID of the player |
country | String | Country of the player |
token | String | Unique string assigned to each player (session ID) |
balance | Integer | Balance of the player |
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. |