Skip to main content

Query Bet Detail

Query detailed information and game screenshots for a specified bet.

API Information

  • URLPOST /v2/betdetail
  • Authentication:Bearer Token
  • Encryption:Requests are encrypted using AES-256-GCM; responses are returned as plaintext JSON

request

Request Headers

POST /v2/betdetail 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

Parameters Before Encryption

{
"username": "fortest01",
"betId": "17519072045833",
"gameCode": "VP_230001_1",
"txTime": "2026-01-21T07:20:00Z",
"lang": "en"
}

Encrypted Request Body

{
"cipherText": "G0ZMDELeJwx+7JcIfIFOLJjkSzANPu6krGM2uw==..."
}
FieldTypeRequiredDescription
usernamestringYesPlayer Account
betIdstringYesBet ID
gameCodestringYesGame Code
txTimestringNoSettlement time for this bet (if this parameter is not provided, only the URL will be given)
langstringNoThe language used to display this data; currently only en and zh-Hans are supported

Response

Success Response

{
"code": 0,
"message": "No error.",
"data": {
"detailJsonInfo": {
"betTime": "2026-01-21T07:20:15.138Z",
"txTime": "2026-01-21T07:20:15.138Z",
"currency": "THB",
"gameCode": "VP_230001_1",
"username": "VPSysDevTest001",
"roundId": "7689800153511300000",
"actualBetAmt": "0.500000",
"validBetAmt": "0.500000",
"winAmt": "23.140000",
"betSourceId": 1
},
"detailUrl": "https://staggp.zzzstkk.com/9c10e49?g=230001&p=fvNlembZYQvUe7D2ak05ZUUdYXO4D1_lVrW9ZcJXVMd6IYvTdoOizsRU9sIpEzuhie8zJa2K61_XWul2wV6TPZeoPu26fJqbp2ekejFvxWookNwpPGtQKzjiTJeEoFwY4tG1xu1dQ1v6RohlADNcPPSzZtBOaWjQegyiXX31YqRtoTaZR1vtvf0rXVO1RiDEt9LFIkyZbnMoydUA2n-wzvukMuHDnz3BXmKZXTpxfKHycecv-ME4IEvPBQGRakHf3P8KY0Z1LTohB1inXT81aLfhyWOxOh3Lo_GYh5CbCTC-_uEUYXeCeWQsU87orzAFjl-_JVDF9NAQXnGGRT607wOSA2CkfgUeNcAz1ZKZUyQxe9vAtV1HWgFTx3DSyjKaKv9FZEDCwMSUiwqlJ-ho6-3V&p2=geludy8wmOH_z1cYo7hqTJXbjCRuUCLrf6xZLC_9cmbKIAnNco7yvsc597O4FaJvTtI7TiI&t=1770081170978",
"detailInfo": null
},
"logUUID": "dde00beb-8a8e-4a7d-a23b-9b68121bb782"
}

Response Field Description

FieldTypeDescription
data.detailJsonInfoobjectDetailed bet information
data.detailJsonInfo.betTimestringBet time
data.detailJsonInfo.txTimestringSettlement time
data.detailJsonInfo.currencystringCurrency
data.detailJsonInfo.gameCodestringGame Code
data.detailJsonInfo.usernamestringPlayer Account
data.detailJsonInfo.roundIdstringGame round ID
data.detailJsonInfo.actualBetAmtstringActual bet amount
data.detailJsonInfo.validBetAmtstringValid bet amount
data.detailJsonInfo.winAmtstringWin amount
data.detailJsonInfo.betSourceIdnumberTransaction source code
data.detailUrlstringGame detail URL
data.detailInfonullReserved field

Error Response

When the request fails, the corresponding error code will be returned.

Error Codes

CodeDescriptionHandling Suggestion
8The User is not existThe player does not exist; please create the player first
11Parameters errorPlease ensure the request parameters are complete and correctly formatted; the time format must be ISO 8601
14The BetId is not existThe bet record does not exist; please confirm whether betId and txTime are correct
37The Function is not supportedThis transaction does not support the detailed screenshot query feature
38Query not allowed as the betId has expiredThe transaction detail has expired and is beyond the queryable time window
81Branch config not foundBranch configuration not found; please contact the Customer Support Team

Error Response Example

{
"code": 14,
"message": "The BetId is not exist",
"logUUID": "24cdc3b9-9fe8-44de-8391-a96863e46954"
}

Important Notes

  1. Screenshot Availability: Only screenshots from the most recent 30 days are retained.
  2. Query Restriction: You can only query bet records under your own agentId.