Callback Action: balance
This callback will be sent to your callback URL, specified within the backoffice. We will send this callback at start of game. You should always return balance on integer format.
The call_id is a unique id sent with each callback and can be considered the transaction id.
Requests
Requests are sent as GET
to your callback url, specified on your API key.
Balance Callback
{
"username": "yourPlayerId9959",
"currency": "USD",
"action": "balance",
"call_id": "e2b801a1-e098-411c-8940-00514cb8070c",
"timestamp": "1696463571",
"key": "6c4e5fd14e796284b327bb4f9603aee4"
}
Responses
Balance must be returned as integer and in cents, that means if your player's balance is 2.50$
this should be returned as 250
.
Succesful Response:
{
"error": 0,
"balance": 250
}
Insufficient Balance
{
"error": 1,
"balance": 250
}
Processing Error (for example player not found or invalid signature)
{
"error": 2,
"balance": 0
}