API reference: calls you receive
Player notification
Optional. We tell you what the player chose in the reality-check window: continue or stop.
POST {wallet-url}/playerNotificationCallback
- Called
- when the player answers the reality-check window, in every game
- Timeout
- your credit timeout: 5,000 ms unless agreed otherwise (1,000–10,000 ms)
- Retries
- twice, 1 s and 3 s later, then dropped
- Required
- no: without it you only miss the notification
Not a money call. See Reality check for when the window opens.
Request#
| Field | Type | Presence | Meaning |
|---|---|---|---|
user_id | string (1–128 chars) | required | Your player reference: the user of the launch. |
game | "dice" | "limbo" | "mines" | "plinko" | "crash" | "chicken" | "keno" | "tower" | "hilo" | required | The game identifier. |
session_token | string | required | Our token for this game session: 64 lower-case hex characters, made at launch and sent in every later call of the session, also after it ended. It is not a credential. |
platform | "mobile" | "desktop" | required | mobile or desktop, from the browser that opened the launch. |
notification | "reality_check" | required | Always reality_check. |
notification_data | object | required | The player's answer. |
notification_data.action | "STOP" | "CONTINUE" | required | CONTINUE or STOP. |
Answer#
| Field | Type | Presence | Meaning |
|---|---|---|---|
code | integer | required | The outcome. Always answer with HTTP status 200. |
message | string | optional | A short text for people. Not used. |
Examples#
Continue
{
"user_id": "u_829301",
"game": "crash",
"session_token": "5f2b8c1d9e3a4f60718293a4b5c6d7e8f9012345678901234567890123456789",
"platform": "desktop",
"notification": "reality_check",
"notification_data": { "action": "CONTINUE" }
}Stop
{
"user_id": "u_829301",
"game": "crash",
"session_token": "5f2b8c1d9e3a4f60718293a4b5c6d7e8f9012345678901234567890123456789",
"platform": "desktop",
"notification": "reality_check",
"notification_data": { "action": "STOP" }
}Accepted
{
"code": 200,
"message": "ok"
}Bad signature (413)
{
"code": 413,
"message": "invalid signature"
}Codes and what we do#
| Code | Meaning | What we do |
|---|---|---|
200 | Received. | Done. |
413 | Our signature did not verify. | An alert; not repeated. |
500 | Any other code, also HTTP 404 from a wallet without this method, and every unknown outcome. | Repeated twice (after 1 s and 3 s), then dropped with a warning. A restart on our side drops pending repeats. |
Order against the next bet#
- Continue: we wait for the first attempt (up to the timeout) before the game lets the player bet again, so the next
withdrawnever reaches you before the notification. The player continues whatever your answer. - Stop: we close the session first, then send the notification.