Skip to main content

Query Bet Replay

Get the game replay URL for a specified bet.

API Information​

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

Request​

Request Headers​

POST /v2/betdetail/replay 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",
"lang": "en"
}

Encrypted Request Body​

{
"cipherText": "G0ZMDELeJwx+7JcIfIFOLJjkSzANPu6krGM2uw==..."
}
FieldTypeRequiredDescription
usernamestringYesPlayer Account
betIdstringYesBet ID
gameCodestringYesGame Code
langstringNoThis data is for display Language, full Language support

Response​

Success Response​

{
"code": 0,
"message": "No error.",
"data": {
"detailUrl": " https://stagweb.gjj8dy.com/public/s/ae9awmzszr",
"detailInfo": null
},
"logUUID": "08870dc2-1552-4cad-b3b3-343ed8114b61"
}

Response Field Description​

FieldTypeDescription
data.detailUrlstringDetailed replay link
data.detailInfostringAdditional Description

Error Response​

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

Error Codes​

CodeDescriptionHandling Suggestion
8The User is not existPlayer does not exist, please Create Player first
11Parameters errorPlease ensure the request parameters are complete and correctly formatted
14The BetId is not existBet Logs & Reports does not exist
37The Function is not supportedThis transaction does not support replay query function
38Query not allowed as the betId has expiredTransaction details have expired, exceeding the queryable time
81Branch config not foundBranch config not found, please Contact Customer Support Team

Error Response Example​

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

Important Notes​

  1. Replay retention period: Only replays from the last 60 days are kept
  2. URL validity: Replay URLs are usually valid within 1 hour
  3. Transaction Type support restrictions: Transactions with betSourceId 2~7 cannot be replayed