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-recordsHeaders
| Property | Type | Required | Description |
|---|---|---|---|
X-Api-Key | string | Required | On 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-Timestamp | string | Required | On 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-Signature | string | Required | On 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-Language | string | Optional | The 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
| Property | Type | Required | Description |
|---|---|---|---|
page | integer | Optional | |
limit | integer | Optional | |
from | string | Optional | RFC 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. |
to | string | Optional | RFC 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_id | string | Optional | Only the bets of this id, in every currency it plays (each record has its currency). |
provider_id | string | Optional | Only the bets of this provider, by its id in the catalog. |
category | string | Optional | The 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 |
status | string | Optional | PENDING 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
{
"from": "2026-01-01T00:00:00+07:00",
"to": "2026-01-02T00:00:00+07:00",
"page": 1,
"limit": 50
}{
"external_player_id": "member01",
"status": "SETTLED"
}Response
| Property | Type | Required | Description |
|---|---|---|---|
success | boolean | Required | Always true |
code | number | Required | Always 0 |
message | string | Required | For people only. Never decide on it. |
request_uuid | string | Required | Our id of the request. Quote it to support. |
data | object | Required | |
data.data | object[] | Required | |
data.data[].id | string | Required | Our id of the bet, the bet_id of the result endpoint. |
data.data[].txn_id | string | Required | The txn_id of the bet in its callbacks. |
data.data[].round_id | string | Required | The round_id of the bet in its callbacks. |
data.data[].player_username | string | Required | Our 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_id | string | null | Required | Your id of the member, as you sent it to launch. Match members by it together with currency. |
data.data[].provider_code | string | Required | The provider's code, the code of the provider in the catalog. |
data.data[].game_code | string | null | Required | Our 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_code | string | null | Required | The provider's own code of the game; null when unknown. |
data.data[].game_name | string | null | Required | |
data.data[].category | string | Required | The 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[].currency | string | Required | An ISO 4217 code in three capital letters, such as THB, JPY or KWD. |
data.data[].bet_amount | number | Required | An 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_amount | number | null | Required | What the bet paid, the stake included. Null until a result is in. |
data.data[].winlose | number | Required | Seen from the member: what the bet paid minus the stake. Positive when the member won, negative when the member lost. |
data.data[].payout_status | string | Required | On 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[].status | string | Required | PENDING 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_at | string | Required | RFC 3339 in UTC with milliseconds, ending in Z. |
data.data[].settled_at | string | null | Required | When the first result came in, in UTC with milliseconds; null before. |
data.data[].updated_at | string | Required | RFC 3339 in UTC with milliseconds, ending in Z. |
data.pagination | object | Required | |
data.pagination.page | integer | Required | |
data.pagination.limit | integer | Required | |
data.pagination.total | integer | Required | How many items the filter matches. |
data.pagination.total_pages | integer | Required | |
data.summary | object[] | Required | One 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[].currency | string | Required | An ISO 4217 code in three capital letters, such as THB, JPY or KWD. |
data.summary[].total_bet_amount | number | Required | An 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_winlose | number | Required | The sum of winlose, rounded once from the exact total, so it can differ from the sum of the rounded records by one minor unit. |
{
"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
| HTTP | code | When |
|---|---|---|
| 400 | 4001 | A field has the wrong shape |
| 401 | 1001 | A header is missing or the key is unknown |
| 401 | 1030 | The signature does not match |
| 401 | 1025 | X-Timestamp is too far from our clock |
| 403 | 1031 | The caller's IP is not on the key's allowlist |
| 403 | 1032 | The endpoint is not for your agent's wallet mode |
| 403 | 1026 | A production key without an IP allowlist |
| 403 | 1002 | The request could not be checked |
| 422 | 4005 | The range reaches back too far |
| 500 | 9001 | Something failed on our side |