Seamless API doc View source ↗

Check Balance POST #

Get latest balance from member.

HTTP Request #

POST {{ YOUR_API_URL }}/checkBalance

Content Type #

Type: application/json

Parameter Description #

PropertyTypeRequiredDescription
idstringRequiredRequest id (Unique value)
timestampMillisnumberRequiredRequesting time
productIdstringRequiredProduct id associated with the request Product
currencystringRequiredPlayer's currency code in ISO 4217 (Example: "THB")
usernamestringRequiredUser id on agent system
gameCodestringOptionalGame code that input from /launch-game API (Depend on provider, sometimes this property didn't sent from provider site).
sessionTokenstringOptionalSession token that your system sent when call /launch-game (Depend on provider, sometimes this property didn't sent from provider site)

Response Description #

PropertyTypeRequiredDescription
idstringRequiredResponse ID (No need to response the same request ID)
statusCodenumberRequiredStatus from StatusCode
timestampMillisnumberRequiredResponding time
productIdstringRequiredProduct id associated with the response Product
currencystringRequiredPlayer's currency codein ISO 4217 (Example: "THB")
balancenumberRequiredPlayer's current balance
usernamestringRequiredUser 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
}