Balance request
Request URL
http(s)://API_URL/v2/app/users/:userId/balance?clientId=[CLIENT_ID]&userId=[userId]¤cy=[currency]
Request header (HTTP Header)
| Parameter Name | Description | Optional / Mandatory | 
|---|---|---|
| sign | Request signature | Mandatory | 
Request parameters
| Parameter Name | Description | Optional / Mandatory | 
|---|---|---|
| clientId | Casino identifier. Sent in the request line | Mandatory | 
| userId | User identifier | Mandatory | 
| currency | ISO currency code | Optional | 
Response parameters
If the currency code was sent, the balance data for this currency will be provided; otherwise, you’ll get the data on user balance for all available currencies.
| Parameter Name | Description | Optional / Mandatory | 
|---|---|---|
| currency | ISO currency code | Mandatory | 
| available | Current user account balance minus the money used for the game at the moment (in cents) | Mandatory | 
| in-play | Total money in the game (at the table) in cents | Mandatory | 
Errors returned
| HTTP Code | Message | Description | 
|---|---|---|
| 400 | Not valid request | Incorrect request signature | 
| 404 | Player not found | User with userId sent was not found | 
| 422 | Currency not valid | Wrong currency ISO code was sent | 
Example of response
{
    "data": [
        {
            "id": "",
            "type": "balance",
            "attributes": {
                "currency": "USD",
                "available": 200,
                "in-play": 0
            }
        },
        {
            "id": "",
            "type": "balance",
            "attributes": {
                "currency": "FUN",
                "available": 1000,
                "in-play": 0
            }
        }
    ]
}