GetBalance() API

This API request enables the operator to get the available balance of a player.

GetBalance() Request

TypeInput
HTTP MethodPOST
API URLhttps://<API_BASE_URL>/get_balance
Headers"Content-Type": "application/json"
POST Parametersjson object e.g.:
{
"token": "3c2ef39d02581e2db3ddf6c713e83e05",
"account_id": "123123"
}
ParametersTypeDescription
tokenStringUnique string assigned to each player
account_idStringAccount 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 ObjectTypeDescription
statusIntegerResponse status
account_idStringUnique ID of player
countryStringCountry of the player in ISO format
tokenStringUnique string assigned to each player (session ID)
balanceIntegerBalance of the player. Balance should be in cents (balance* 100)
currencyStringCurrency of the player
bonus_amountIntegerBonus amount available in player’s wallet. If this amount is not available please send 0 value.