Skip to main content

Query Bet Replay

Get the game replay URL for a specified bet.

API Information

  • URLPOST /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
langstringNoThe language used to display this data; all languages are supported

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.detailUrlstringBet detail 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 existThe player does not exist; please create the player first
11Parameters errorPlease ensure the request parameters are complete and correctly formatted
14The BetId is not existThe bet record does not exist
37The Function is not supportedThis transaction does not support the replay 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. Replay Retention Period: Only replays from the most recent 30 days are retained.
  2. URL Validity Period: The replay URL is usually valid for 1 hour.
  3. Transaction Type Support Restriction: Transactions with betSourceId 2–7 cannot be replayed.