Appearance
Check Balance POST
Get latest balance from member.
HTTP Request
POST {{ YOUR_API_URL }}/checkBalance
Content Type
Type: application/json
Parameter Description
Property | Type | Required | Description |
---|---|---|---|
id | string | Required | Request id (Unique value) |
timestampMillis | number | Required | Requesting time |
productId | string | Required | Product id associated with the request Product |
currency | string | Required | Player's currency code in ISO 4217 (Example: "THB" ) |
username | string | Required | User id on agent system |
gameCode | string | Optional | Game code that input from /logIn API (Depend on provider, sometimes this property didn't sent from provider site). |
sessionToken | string | Optional | Session token that your system sent when call /logIn (Depend on provider, sometimes this property didn't sent from provider site) |
Response Description
Property | Type | Required | Description |
---|---|---|---|
id | string | Required | Response ID (No need to response the same request ID) |
statusCode | number | Required | Status from StatusCode |
timestampMillis | number | Required | Responding time |
productId | string | Required | Product id associated with the response Product |
currency | string | Required | Player's currency codein ISO 4217 (Example: "THB" ) |
balance | number | Required | Player's current balance |
username | string | Required | User id on agent system |
Request Example
Request Body
json
{
"id": "2989ccc8-aae3-4ff4-803c-47de52f7c4d5",
"currency": "THB",
"productId": "{{ ProductID }}",
"timestampMillis": 1712641926000,
"username": "foobar",
"gameCode": "3300",
"sessionToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}
JSON response Success example:
json
{
"id": "2989ccc8-aae3-4ff4-803c-47de52f7c4d5",
"statusCode": 0,
"timestampMillis": 1712641927000,
"productId": "{{ ProductID }}",
"currency": "THB",
"balance": 10000,
"username": "foobar"
}
JSON response Fail example:
json
{
"id": "c7197ce4-5a50-4397-a903-d78b135ade4c",
"statusCode": 10001,
"productId": "{{ Product ID }}",
"timestampMillis": 1631599542878
}