Appearance
Query Bet Records GET
Authorization
Transfer uses Basic Authentication with your agent credentials. (Authentication)
HTTP Request
GET {{ API_URL }}/betTransactionsV2?productId={{ productId }}&date={{ date }}&nextId={{ nextId }}
Note: there's a high chance of request timeout when using this variant. If there's a request timeout, please consider querying by range instead.
or
GET {{ API_URL }}/betTransactionsV2?productId={{ productId }}&startTime={{ startTime }}&endTime={{ endTime }}&nextId={{ nextId }}
Note: query range should not be greater than 1 hour. If there's a request timeout, please reduce query range.
Parameter Description
Property | Type | Required | Description |
---|---|---|---|
productId | string | Required | Product ID (Ref. Product List)) (Example : SEXY ) |
date | string | Optional | Date in format yyyy-MM-dd |
startTime | string | Optional | Date-time in ISO 8601 format eg 2013-07-16T19:23:51Z |
endTime | string | Optional | Date-time in ISO 8601 format eg 2013-07-16T19:23:51Z |
nextId | string | Optional | Taken from previous chunk response, indicating the start of requesting chunk |
Response Description
Property | Type | Required | Description |
---|---|---|---|
reqId | string | Required | Unique reference for each request |
code | number | Required | Response status |
message | string | Required | Additional information on response status |
data | QueryBetDataV2 | Required | Query bet data |
Query Bet Data
Property | Type | Required | Description |
---|---|---|---|
nextId | string | Optional | Id indicating the start of next chunk. (If not present it means there's no next chunk.) |
txns | Txn[] | Required | Transactions list. |
Txn
Property | Type | Required | Description |
---|---|---|---|
id | string | Required | Transaction id |
betId | string | Required | Unique bet id on each user |
username | string | Required | Username |
currency | string | Required | ISO 4217 currency code |
accountingDate | string | Required | Settlement time |
updatedDate | string | Required | Latest update time |
stake | number | Required | Stake amount |
payout | number | Required | Payout amount (including stake) |
productId | string | Required | Product id |
gameCode | string | Required | Game code |
gameName | string | Required | Game name |
roundId | string | Required | Round id |
betStatus | string | Required | Bet status (OPEN, SETTLED, UNSETTLED, VOID) |
payoutStatus | string | Required | Payout status (LOSE, WIN, DRAW, UNKNOWN) |
commission | number | Required | Commission fee |
JSON response example:
json
{
"reqId": "afd71177-960f-4669-90ed-8a34eed3d7d3",
"code": 0,
"message": "Success",
"data": {
"nextId": "613af94ce2d30c10be22dc6b",
"txns": [
{
"id": "613af94ce2d30c10be22dc06",
"betId": "21352670",
"username": "tor0002",
"currency": "THB",
"accountingDate": "2021-09-10T06:20:06.000+00:00",
"updatedDate": "2021-09-10T06:20:06.000+00:00",
"stake": 40,
"payout": 30,
"productId": "SIMPLEPLAY",
"gameCode": "EG-SLOT-A044",
"gameName": "Bomber Squad",
"roundId": "4500052193296",
"betStatus": "SETTLED",
"payoutStatus": "LOSE",
"commission": 0
},
{
"id": "613af94ce2d30c10be22dc34",
"betId": "21352676",
"username": "tor0002",
"currency": "THB",
"accountingDate": "2021-09-10T06:20:20.000+00:00",
"updatedDate": "2021-09-10T06:20:20.000+00:00",
"stake": 40,
"payout": 15,
"productId": "SIMPLEPLAY",
"gameCode": "EG-SLOT-A044",
"gameName": "Bomber Squad",
"roundId": "4500085747728",
"betStatus": "SETTLED",
"payoutStatus": "LOSE",
"commission": 0
}
]
}
}