API Document

Endpoint, both modes

List your members' bets POST

Your members' bets placed in the half-open range [from, to), newest first and then by id, with a summary per currency of every bet the filter matches. Without from and to the range is the last 30 days; with from only it ends now; with to only it is the 30 days before to. A range that starts more than 90 days ago is refused (4005). Records can be a few seconds behind. A suspended agent can still call it.

HTTP Request

POST {{ API_URL }}/api/v1/bet-records

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
pageintegerOptional
limitintegerOptional
fromstringOptionalRFC 3339 with an offset: Z or +hh:mm or -hh:mm (at most 14 hours), with or without a fraction of a second. A date without a time, or a date that does not exist, is answered 4001.
tostringOptionalRFC 3339 with an offset: Z or +hh:mm or -hh:mm (at most 14 hours), with or without a fraction of a second. A date without a time, or a date that does not exist, is answered 4001.
external_player_idstringOptionalOnly the bets of this id, in every currency it plays (each record has its currency).
provider_idstringOptionalOnly the bets of this provider, by its id in the catalog.
categorystringOptionalThe category of a game. New values may come in version 1: accept one you do not know in a response. One of: SLOT, ARCADE, LIVE_CASINO, TABLE, FISHING, SPORT, LOTTERY, ESPORT, KENO, COCKFIGHT
statusstringOptionalPENDING the bet is open, SETTLED its result is in, VOIDED a settled bet was cancelled, CANCELLED an open bet was cancelled and the stake given back. New values may come in version 1. One of: PENDING, SETTLED, VOIDED, CANCELLED

Request Body

Request body: One day in GMT+7json
{
  "from": "2026-01-01T00:00:00+07:00",
  "to": "2026-01-02T00:00:00+07:00",
  "page": 1,
  "limit": 50
}
Request body: The settled bets of one member in the last 30 daysjson
{
  "external_player_id": "member01",
  "status": "SETTLED"
}

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.dataobject[]Required
data.data[].idstringRequiredOur id of the bet, the bet_id of the result endpoint.
data.data[].txn_idstringRequiredThe txn_id of the bet in its callbacks.
data.data[].round_idstringRequiredThe round_id of the bet in its callbacks.
data.data[].player_usernamestringRequiredOur username of the member, for support. Never match members by it (see how you name a member in Agent API rules).
data.data[].external_player_idstring | nullRequiredYour id of the member, as you sent it to launch. Match members by it together with currency.
data.data[].provider_codestringRequiredThe provider's code, the code of the provider in the catalog.
data.data[].game_codestring | nullRequiredOur code of the game the bet was recorded under, the code in the catalog; null when unknown. A description, never a key; when it can differ from a callback's is in the bet records section of Agent API rules.
data.data[].provider_game_codestring | nullRequiredThe provider's own code of the game; null when unknown.
data.data[].game_namestring | nullRequired
data.data[].categorystringRequiredThe category of a game. New values may come in version 1: accept one you do not know in a response. One of: SLOT, ARCADE, LIVE_CASINO, TABLE, FISHING, SPORT, LOTTERY, ESPORT, KENO, COCKFIGHT
data.data[].currencystringRequiredAn ISO 4217 code in three capital letters, such as THB, JPY or KWD.
data.data[].bet_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.data[].payout_amountnumber | nullRequiredWhat the bet paid, the stake included. Null until a result is in.
data.data[].winlosenumberRequiredSeen from the member: what the bet paid minus the stake. Positive when the member won, negative when the member lost.
data.data[].payout_statusstringRequiredOn a SETTLED bet, from the sign of winlose as shown (WIN above 0, LOSE below, DRAW at 0). UNKNOWN on every other status. One of: WIN, LOSE, DRAW, UNKNOWN
data.data[].statusstringRequiredPENDING the bet is open, SETTLED its result is in, VOIDED a settled bet was cancelled, CANCELLED an open bet was cancelled and the stake given back. New values may come in version 1. One of: PENDING, SETTLED, VOIDED, CANCELLED
data.data[].bet_atstringRequiredRFC 3339 in UTC with milliseconds, ending in Z.
data.data[].settled_atstring | nullRequiredWhen the first result came in, in UTC with milliseconds; null before.
data.data[].updated_atstringRequiredRFC 3339 in UTC with milliseconds, ending in Z.
data.paginationobjectRequired
data.pagination.pageintegerRequired
data.pagination.limitintegerRequired
data.pagination.totalintegerRequiredHow many items the filter matches.
data.pagination.total_pagesintegerRequired
data.summaryobject[]RequiredOne entry per currency, in order of the currency code, over every bet the filter matches (not only this page). Totals never add across currencies.
data.summary[].currencystringRequiredAn ISO 4217 code in three capital letters, such as THB, JPY or KWD.
data.summary[].total_bet_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.summary[].total_winlosenumberRequiredThe sum of winlose, rounded once from the exact total, so it can differ from the sum of the rounded records by one minor unit.
JSON response examplejson
{
  "success": true,
  "code": 0,
  "message": "Bet records fetched",
  "data": {
    "data": [
      {
        "id": "8f90a1b2-c3d4-45e6-87f8-091a2b3c4d5e",
        "txn_id": "J-4001",
        "round_id": "R-9001",
        "player_username": "abcmember02",
        "external_player_id": "member02",
        "provider_code": "PGSOFT",
        "game_code": "fortune-tiger",
        "provider_game_code": "10300",
        "game_name": "Fortune Tiger",
        "category": "SLOT",
        "currency": "JPY",
        "bet_amount": 1000,
        "payout_amount": null,
        "winlose": 0,
        "payout_status": "UNKNOWN",
        "status": "PENDING",
        "bet_at": "2026-01-01T00:05:00.000Z",
        "settled_at": null,
        "updated_at": "2026-01-01T00:05:00.000Z"
      },
      {
        "id": "7d8e9f01-2a3b-4c5d-9e6f-708192a3b4c5",
        "txn_id": "T-1001",
        "round_id": "R-501",
        "player_username": "abcmember01",
        "external_player_id": "member01",
        "provider_code": "PGSOFT",
        "game_code": "fortune-tiger",
        "provider_game_code": "10300",
        "game_name": "Fortune Tiger",
        "category": "SLOT",
        "currency": "THB",
        "bet_amount": 200,
        "payout_amount": 500,
        "winlose": 300,
        "payout_status": "WIN",
        "status": "SETTLED",
        "bet_at": "2026-01-01T00:00:00.000Z",
        "settled_at": "2026-01-01T00:01:00.000Z",
        "updated_at": "2026-01-01T00:01:00.000Z"
      }
    ],
    "pagination": {
      "page": 1,
      "limit": 50,
      "total": 2,
      "total_pages": 1
    },
    "summary": [
      {
        "currency": "JPY",
        "total_bet_amount": 1000,
        "total_winlose": 0
      },
      {
        "currency": "THB",
        "total_bet_amount": 200,
        "total_winlose": 300
      }
    ]
  },
  "request_uuid": "7e8f9001-2233-44c5-b6d7-f8091a2b3c4d"
}

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
4224005The range reaches back too far
5009001Something failed on our side