Balance
Called whenever the game needs to refresh the player’s balance.
Request
[POST] {WALLET_URL}/| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | yes | always balance |
| user_id | integer | yes | user’s ID at the casino |
| currency | string(3) | yes | currency code in ISO 4217 format |
Request body:
{
"user_id": 10000,
"action": "balance",
"currency": "USD"
}Response
Response should be a json object.
{
"status": "OK",
"balance": 100.05,
"currency": "USD"
}| Parameter | Type | Required | Description |
|---|---|---|---|
| status | string | yes | OK on success, ERROR otherwise |
| balance | float | yes | player’s current balance in the major currency unit |
| currency | string(3) | yes | currency code in ISO 4217 format |
Last updated on