API Document

Endpoint, TRANSFER mode

Read a member's balance POST

Returns the balance of the member of external_player_id and currency. A currency the id has not used yet has a balance of 0; an external_player_id you never sent is refused with 3134. A negative balance is money the member owes. A suspended agent can still call it.

HTTP Request

POST {{ API_URL }}/api/v1/transfer/balance

Headers

PropertyTypeRequiredDescription
X-Api-KeystringRequiredOn the endpoints: the API key of your API credential. A missing header or a key we do not know is answered 401 with code 1001. Send it with X-Timestamp and X-Signature on every request.
X-TimestampstringRequiredOn the endpoints: Unix time in seconds when you signed the request. One more than 300 seconds away from our clock, in either direction, is answered 401 with code 1025. Keep your clock in sync (NTP).
X-SignaturestringRequiredOn the endpoints: lowercase hex of HMAC-SHA256 with the secret of your API credential as the key, over the X-Timestamp value, a dot (.), then the raw request body exactly as you send it. One that does not match is answered 401 with code 1030. There is no nonce.
Accept-LanguagestringOptionalThe language of message. English when absent or when we do not have the language; th for Thai. It is the only way to choose the language. message is for people only: decide on code.

Parameter Description

PropertyTypeRequiredDescription
external_player_idstringRequiredYour id of your customer, as in launch.
currencystringRequiredAn ISO 4217 code in three capital letters, such as THB, JPY or KWD.

Request Body

Request bodyjson
{
  "external_player_id": "member01",
  "currency": "THB"
}

Response

PropertyTypeRequiredDescription
successbooleanRequiredAlways true
codenumberRequiredAlways 0
messagestringRequiredFor people only. Never decide on it.
request_uuidstringRequiredOur id of the request. Quote it to support.
dataobjectRequired
data.external_player_idstringRequired
data.currencystringRequiredAn ISO 4217 code in three capital letters, such as THB, JPY or KWD.
data.balancenumberRequiredA member's balance in the major unit of currency, with the currency's decimals. Negative when the member owes money, for example after a provider took back a win that was already spent.
JSON response examplejson
{
  "success": true,
  "code": 0,
  "message": "Balance fetched",
  "data": {
    "external_player_id": "member01",
    "currency": "THB",
    "balance": 620.5
  },
  "request_uuid": "7d8e9f0a-1b2c-4d3e-9f50-61728394a5b6"
}

Errors

HTTPcodeWhen
4004001A field has the wrong shape
4011001A header is missing or the key is unknown
4011030The signature does not match
4011025X-Timestamp is too far from our clock
4031031The caller's IP is not on the key's allowlist
4031032The endpoint is not for your agent's wallet mode
4031026A production key without an IP allowlist
4031002The request could not be checked
4043134No member with this external_player_id
5009001Something failed on our side