Skip to Content
API CallbacksAuthentication

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
ParameterTypeRequiredDescription
actionstringyesalways authenticate
user_idintegeryesuser’s ID at the casino
tokenstring(32)yesgame 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 }
ParameterTypeRequiredDescription
statusstringyesOK on success, ERROR otherwise
user_idintegeryesuser’s ID at the casino
usernamestringyesuser’s username, displayed in the game
balancefloatyesplayer’s current balance in the major currency unit
currencystring(3)yescurrency code in ISO 4217 format
exchanged_currencystring(3) or falsenoalternative currency code, or false when not used
Last updated on