Identify

Used to identify player using token generated by operator before.

In case of successful identification, PAM expects Response 200, otherwise return response with code 403 Request.

Request fields:

AttributeData TypeDescription

operator

string

Name of the operator as registered on the system

token

string

Player identification token

Sample identify request:

{    
    "action": "identify",
    "data": {
        "operator": "operator-code", 
        "token": "partner-player-token"
    }
}

Response fields:

AttributeData TypeDescription

player_id

string

Player identification number or code

lang

string

Language code in two letter ISO 639-1 format

balance

integer

Available player balance. Should be in integer format (cents)

currency

string

Currency code in ISO 4217 three letter format

feature_flags

object

Additional features

Sample identify response:

Response: 200
{
    "player_id": "1660986605374148608", 
    "lang": "en",
    "balance": 1000,
    "currency": "KES", 
    "feature_flags": {
        "flag_name1": true, 
        "flag_name2": false
    }
}

Response: 400
{
    "code": 101,
    "message": "User not found" 
}

Last updated