Authentication
Called once when the game is opened, to validate the game session token created by the casino at Game launch and to read the player’s starting balance.
Request
[GET] {WALLET_URL}/?user_id=10000&action=authenticate&token=1a2b3c4d5e6f708192a3b4c5d6e7f809| Parameter | Type | Required | Description |
|---|---|---|---|
| action | string | yes | always authenticate |
| user_id | integer | yes | user’s ID at the casino |
| token | string(32) | yes | game run session token sent by the casino at game launch |
Response
Response should be a json object.
{
"status": "OK",
"user_id": 10000,
"username": "user123",
"balance": 100.05,
"currency": "USD",
"exchanged_currency": false
}| Parameter | Type | Required | Description |
|---|---|---|---|
| status | string | yes | OK on success, ERROR otherwise |
| user_id | integer | yes | user’s ID at the casino |
| username | string | yes | user’s username, displayed in the game |
| balance | float | yes | player’s current balance in the major currency unit |
| currency | string(3) | yes | currency code in ISO 4217 format |
| exchanged_currency | string(3) or false | no | alternative currency code, or false when not used |
Last updated on