API Document

Endpoint, TRANSFER mode

Move money into a member POST

Adds amount to the member of external_player_id and currency, and creates that member when the id has not used the currency yet. When the member owes money (a negative balance), the deposit pays the debt first, and debt_cleared says how much of it went there. ref_id is your id of the transfer: the same ref_id sent again returns the first result and moves nothing, and the same ref_id with another member, currency or amount is refused with 3130 (an amount that is no amount of the currency is 4001 first, as on any deposit). A suspended agent cannot make a new deposit (1033) but can still resend a done ref_id, and no member of a suspended external_player_id can take a deposit (1008).

HTTP Request

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

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. With currency it names the member: the first deposit of an id in a currency creates the member of that currency.
currencystringRequiredAn ISO 4217 code in three capital letters, such as THB, JPY or KWD.
amountnumberRequiredA positive amount in the major unit of currency, with at most as many decimals as the currency has (THB 2, JPY 0, KWD 3), at least one smallest unit and at most 999999999999999 of them (15 digits). Float noise past 15 significant digits (0.30000000000000004) is rounded to the currency's decimals when it is within a hundredth of the smallest unit.
ref_idstringRequiredYour id of this transfer, unique among all your transfers: 1 to 64 Unicode code points of text, without U+0000 to U+001F and U+007F. Send the same ref_id again after a timeout or a network error: it returns the first result and moves nothing, also after your agent was suspended.

Request Body

Request bodyjson
{
  "external_player_id": "member01",
  "currency": "THB",
  "amount": 500,
  "ref_id": "dep-20260101-0001"
}

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.ref_idstringRequiredYour ref_id.
data.txn_idstringRequiredOur id of the transfer. Quote it to support.
data.amountnumberRequiredAn amount in the major unit of currency, with at most as many decimals as the currency has (THB 2, JPY 0, KWD 3). Never negative; the direction comes from the path or direction.
data.currencystringRequiredAn ISO 4217 code in three capital letters, such as THB, JPY or KWD.
data.balance_beforenumberRequiredA 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.
data.balance_afternumberRequiredA 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.
data.debt_clearednumberRequiredAn amount in the major unit of currency, with at most as many decimals as the currency has (THB 2, JPY 0, KWD 3). Never negative; the direction comes from the path or direction.
JSON response example: A deposit into a member with no debtjson
{
  "success": true,
  "code": 0,
  "message": "Deposit done",
  "data": {
    "ref_id": "dep-20260101-0001",
    "txn_id": "8a9b0c1d-2e3f-4a5b-8c6d-7e8f9a0b1c2d",
    "amount": 500,
    "currency": "THB",
    "balance_before": 120.5,
    "balance_after": 620.5,
    "debt_cleared": 0
  },
  "request_uuid": "9b0c1d2e-3f4a-4b5c-9d7e-8f9a0b1c2d3e"
}
JSON response example: A deposit into a member who owed 30 THBjson
{
  "success": true,
  "code": 0,
  "message": "Deposit done",
  "data": {
    "ref_id": "dep-20260101-0002",
    "txn_id": "0c1d2e3f-4a5b-4c6d-8e8f-9a0b1c2d3e4f",
    "amount": 100,
    "currency": "THB",
    "balance_before": -30,
    "balance_after": 70,
    "debt_cleared": 30
  },
  "request_uuid": "1d2e3f4a-5b6c-4d7e-9f9a-0b1c2d3e4f50"
}

Errors

HTTPcodeWhen
4004001The amount is not a positive number
4011001A header is missing or the key is unknown
4011030The signature does not match
4011025X-Timestamp is too far from our clock
4031033Your agent is suspended
4031008The member is suspended
4033123The currency is not enabled on your account
4093130The ref_id was used for another transfer
5009001Something failed on our side