Skip to main content

Get user token

Request

URI: /getUserToken

Example usage: https://{callback_url}/getUserToken?{parameters}

The request is executed using the GET method.

This method is used in for sport betting (if a long period of time has passed between the bet's placing and closing and the token has been expired). Recommended token time 5 minutes. Note, slots and live games do not use this method.

Request parameters

NameTypeRequiredDescription
userIdstringYesThe unique identifier of the user

Response parameters

NameTypeRequiredDescription
statusbooleanYesResponse status code for Call back API
Accepted values: true, false
userIdstringYesThe unique identifier of the user
tokenstringYesThe token
balancedecimalYesPlayer's latest balance, at the time of the request completion
Decimal format required
errorsobjectNoDescription of errors in case status = false
errors.codenumberNoError code
errors.errorstringNoError description

Example of a successful response

Response: /getUserToken
{
"status": true,
"userId": 4878,
"token": "XXXXXXXXXX",
"balance": 124000.55
}

Example of an unsuccessful response

Response: /getUserToken
{
"status": false,
"errors": {
"code": 400,
"error": "Description"
}
}