Menu

Wallet, on your server

wallet.balance

Gets the player’s balance.

Who calls it

We → youPOST {your server}/v1/wallet.balance

We send it when the game opens, or when the player comes back to it. The game shows the balance. We sign the call with our private key. Check it with our public key for the environment. See Signing calls. You answer within 3 seconds.

Request

FieldTypeWhat it is
sessionIdstringLinks the money to our session.
casinoSessionIdstringLinks the money to your own session.
playerIdstringWhose balance.
currencystringWhich money.
traceIdstringOne search finds the whole chain on both sides.

Answer

FieldTypeWhat it is
balanceintegerThe new balance.

If you do not answer in time, the game shows “Can’t load balance” with a retry button. After any retry of another wallet call, the game calls wallet.balance for a fresh balance.

Errors

No refusal codes are defined for this call.

Example

POST {your server}/v1/wallet.balanceExample
Request
{
  "sessionId": "s-01JC8Z…",
  "casinoSessionId": "c-5531",
  "playerId": "p-82731",
  "currency": "EUR",
  "traceId": "tr-01JC…"
}

Answer
{ "ok": true, "result": { "balance": 25000 } }