Appearance
The product calls the operator on this path.
HTTP Request
Method and path below. {API_URL} is a host from the Authentication page. {YOUR_API_URL} is the operator callback host.
text
POST {YOUR_API_URL}/checkBalanceContent Type
Use Content-Type: application/json.
Parameter Description
Field name, type, and whether the caller must send it.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Required | Transaction id |
timestampMillis | number | Required | Unix time in milliseconds |
productId | string | Required | Product id from the API reference |
currency | string | Required | Currency code such as THB |
username | string | Required | Player login name |
gameCode | string | Optional | Game code from the list-games call. paths /logIn |
sessionToken | string | Optional | Operator session token. Send YOUR_TOKEN. paths /logIn |
json
{
"id": "txn-1",
"timestampMillis": 1700000000000,
"productId": "EXAMPLE",
"currency": "THB",
"username": "player01",
"gameCode": "example",
"sessionToken": "YOUR_SECRET"
}Response Description
Fields in a successful JSON body.
| Property | Type | Required | Description |
|---|---|---|---|
id | string | Required | Transaction id |
statusCode | number | Required | Callback status code |
timestampMillis | number | Required | Unix time in milliseconds |
productId | string | Required | Product id from the API reference |
currency | string | Required | Currency code such as THB |
balance | number | Required | Balance after the call |
username | string | Required | Player login name |
json
{
"id": "txn-1",
"statusCode": 0,
"timestampMillis": 1700000000000,
"productId": "EXAMPLE",
"currency": "THB",
"balance": "1.00",
"username": "player01"
}Request Example
Placeholder values only. Do not send these as real credentials.
