Get BetLog
Get detailed records of bets
API Information
- URL:
POST /v2/betlogs - Authentication:Bearer Token
- Encryption:Requests are encrypted using AES-256-GCM; responses are returned as plaintext JSON
request
request Headers
POST /v2/betlogs HTTP/1.1
Host: api.example.com
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
x-agentid: integratorNBTest04
x-timestamp: 1769746894501
x-nonce: 4ff08bc2a45c6b38068dbcd24296a25b
x-signature: c25f8d23704373e8776cce6d9b10f1fde091c34db80d60523c7e04ff30e54633
Request Parameters
Request Body Before Encryption
{
"startDate": "2026-01-21T07:20:00Z",
"endDate": "2026-01-21T07:20:00Z",
"betSourceId": "0"
}
Encrypted Request Body
{
"cipherText": "G0ZMDELeJwx+7JcIfIFOLJjkSzANPu6krGM2uw==..."
}
| Field | Type | Required | Description |
|---|---|---|---|
startDate | string | Yes | Betlog start time |
endDate | string | Yes | Betlog end time |
betSourceId | string | No | Source of the transaction |
Response
Success Response
{
"code": 0,
"message": "No error.",
"data": [
{
"betTime": "2025-12-09T09:05:10.151Z",
"txTime": "2025-12-09T09:05:10.151Z",
"currency": "THB",
"brand": "VP",
"gameCode": "VP_230001_1",
"username": "apitest011",
"roundId": "7652711103511700000",
"transferId": "7652711103511700000",
"betStatus": 2,
"actualBetAmt": "0.500000",
"validBetAmt": "0.500000",
"winAmt": "0.360000",
"jackpotWin": "0.000000",
"jackpotContribute": "0.000000",
"betSourceId": 1
}
],
"logUUID": "88825f91-719d-495f-b7a0-58c442d8e985"
}
| Field | Type | Description |
|---|---|---|
data | array | BetLogs list |
data[].betTime | string | Bet Time |
data[].txTime | string | Settle Time |
data[].currency | string | Currency |
data[].brand | string | brand |
data[].gameCode | string | Game Code |
data[].username | string | Player Account |
data[].roundId | string | Game Round ID |
data[].transferId | string | transferId |
data[].betStatus | number | Bet status |
data[].actualBetAmt | string | Actual bet amount |
data[].validBetAmt | string | Valid bet amount |
data[].winAmt | string | Payout of this bet |
data[].jackpotWin | string | Jackpot prize which was win |
data[].jackpotContribute | string | Jackpot contribute |
data[].betSourceId | number | Source of the transaction |
logUUID | string | Request tracking ID for troubleshooting and log queries |
Error Response
When the request fails, the corresponding error code will be returned.
Error Codes
| Code | Description | Handling Suggestion |
|---|---|---|
| 11 | Parameters error | Ensure that all request parameters are complete and correctly formatted |
| 77 | Too many request | Too many requests. Please try again later. |
Error Response Example
Parameters error
{
"code": 11,
"message": "Parameters error",
"logUUID": "24cdc3b9-9fe8-44de-8391-a96863e46954"
}
Too many requests
{
"code": 77,
"message": "Too many request, please try again later",
"logUUID": "24cdc3b9-9fe8-44de-8391-a96863e46954"
}
Important Notes
- Call Frequency: Each agentId is limited to one request every 3 seconds
- Time Range: The maximum time range per query is 10 minutes
- Time Constraint: startDate and endDate must not exceed the current time
- Historical Range: Historical records can be queried up to the past 40 days