GetBalance() API

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

TypeInput
HTTP MethodPOST
API URLProvided by Operator
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": 1,
	"account_id": "123123",
	"country": "US",
	"token": "3c2ef39d02581e2db3ddf6c713e83e05",
	"balance": 12345,
	"currency": "USD",
	"bonus_amount": "10"
}
Object/Key in Response ObjectTypeDescription
statusIntegerResponse status
account_idStringAccount ID of the player
countryStringCountry of the player
tokenStringUnique string assigned to each player (session ID)
balanceIntegerBalance of the player
currencyStringCurrency of the player
bonus_amountIntegerBonus amount available in player’s wallet. If this amount is not available please send 0 value.