Player info
Returns a player's current balance.
Path
/infoMethod
POSTContent-Type
application/jsonHeaders
X-Client-IDX-Client-TSX-Client-SignatureAppended to your wallet base URL. Signed: see Securing requests.
When we call it
- Before money changes that aren't bets, such as a player making it rain in chat.
Request
| Parameter | Type | Description |
|---|---|---|
user_idrequired | string | Your player ID, as your /auth returned it. |
session_tokenrequired | string | The player's launch token. |
currencyrequired | string | Currency code, e.g. KES. |
Request body
{
"user_id": "100245",
"session_token": "8f3c1d2e9b7a4c5d8e1f2a3b4c5d6e7f",
"currency": "KES"
}Response
| Field | Type | Description |
|---|---|---|
coderequired | integer | 200 when the player was found. |
messagerequired | string | ok, or the reason for a refusal. |
data.user_idrequired | string | The player's ID on your side. The game sends it back on every later call. |
data.balancerequired | number | The player's balance, in the amount unit agreed for your integration. |
data.usernameoptional | string | Display name. Other players only ever see it masked (j***u). |
data.phoneoptional | string | Kept on our side for support; never shown to other players. |
data.currencyoptional | string | The balance currency, e.g. KES. |
Response
{
"code": 200,
"message": "ok",
"data": {
"user_id": "100245",
"username": "jkamau",
"phone": "254712345678",
"balance": 1500.5,
"currency": "KES"
}
}Result codes
| Code | Meaning |
|---|---|
200 | Player found. |
404 | No such player. |
Every method: see Result codes.