getbalance
READ ONLY
The current balance of the player in the session's currency. Every call is a fresh question: not idempotent, nothing to remember.
we send
{
"action": "getbalance",
"transaction_id": "",
"reference_transaction_id": null,
"session_id": "2222aaaa-…",
"round_id": "",
"player_id": "p-1",
"game_id": null,
"currency": "EUR",
"amount": null
}you answer 200
{ "balance": "100.00" }| Case | Answer |
|---|---|
| Unknown player | 4xx PLAYER_NOT_FOUND |
| Blocked player | 200 with the balance; refuse the next bet instead |
