Skip to content

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

PropertyTypeRequiredDescription
productIdstringRequiredProduct ID (Ref. Product List)) (Example : SEXY)
datestringOptionalDate in format yyyy-MM-dd
startTimestringOptionalDate-time in ISO 8601 format eg 2013-07-16T19:23:51Z
endTimestringOptionalDate-time in ISO 8601 format eg 2013-07-16T19:23:51Z
nextIdstringOptionalTaken from previous chunk response, indicating the start of requesting chunk

Response Description

PropertyTypeRequiredDescription
reqIdstringRequiredUnique reference for each request
codenumberRequiredResponse status
messagestringRequiredAdditional information on response status
dataQueryBetDataV2RequiredQuery bet data

Query Bet Data

PropertyTypeRequiredDescription
nextIdstringOptionalId indicating the start of next chunk. (If not present it means there's no next chunk.)
txnsTxn[]RequiredTransactions list.

Txn

PropertyTypeRequiredDescription
idstringRequiredTransaction id
betIdstringRequiredUnique bet id on each user
usernamestringRequiredUsername
currencystringRequiredISO 4217 currency code
accountingDatestringRequiredSettlement time
updatedDatestringRequiredLatest update time
stakenumberRequiredStake amount
payoutnumberRequiredPayout amount (including stake)
productIdstringRequiredProduct id
gameCodestringRequiredGame code
gameNamestringRequiredGame name
roundIdstringRequiredRound id
betStatusstringRequiredBet status (OPEN, SETTLED, UNSETTLED, VOID)
payoutStatusstringRequiredPayout status (LOSE, WIN, DRAW, UNKNOWN)
commissionnumberRequiredCommission 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
      }
    ]
  }
}