application/json. Authentication against the API is accomplished by using HTTP basic authentication (see https://en.wikipedia.org/wiki/Basic_access_authentication) and optionally IP whitelisting.Authorization: Basic xxxxxxxxxxxxxxxxxxx HTTP header is required, where xxxxxxxxxxxxxxxxxxx is the Base64 encoding of USERNAME:PASSWORD, e.g. JohnDoe:MyPass → Sm9obkRvZTpNeVBhc3M=.HTTP 401 Unauthorized.| Endpoint | Description |
|---|---|
| verifySession | Session verification and player data. |
| getBalance | Gets account balance and currency. |
| withdraw | Withdraws money from the wallet, e.g. some good being bought. |
| confirmWithdrawal | Confirms a former withdrawal. |
| rollbackWithdrawal | Rolls back a former withdrawal. |
| deposit | Deposits money due to the wallet, e.g. claimed some bonuses. |
| confirmDeposit | Confirms a former deposit. |
| rollbackDeposit | Rolls back a former deposit. |
HTTP 400 Unauthorized.HTTP 200 OK and the HTTP content, will provide an error code and description.| Field | Type | Description | Required |
|---|---|---|---|
| errorCode | number | Error code. | required |
| errorDescription | string | Error description for debug purposes. | required |
{
"errorCode": 100,
"errorDescription": "An unexpected internal error occurred."
}| Code | Description |
|---|---|
| 100 | Other error. |