Skip to main content

RetryBet - RetryBet

When item or Operator Card betting operations fail or time out due to network issues or system exceptions, the VP platform will invoke this API to retry the bet, ensuring transaction consistency.

Request Parameters

Request Body Before Decryption

{
"cipherText": "G0ZMDELeJwx+7JcIfIFOLJjkSzANPu6krGM2uw==..."
}
info

For the decryption algorithm, please refer to the Operator API Implementation Description

Request Body Before Decryption

{
"action": "retryBet",
"uid": "testaccount01",
"roundId": "testroundId001",
"transferId": "testroundId001",
"brand": "VP",
"currency": "THB",
"gameCode": "VP_230001_1",
"betTime": "2025-11-17T16:01:13.155Z",
"txTime": "2025-11-17T16:01:13.155Z",
"gameInfo": "{\"featureBuy\":0,\"spinID\":[\"7634278403511200000\",\"7634278403512200000\",\"7634278403513700000\"],\"cardType\":1,\"isFeatureGame\":\"\",\"deviceType\":0}",
"actualBetAmt": 0,
"validBetAmt": 0,
"winAmt": 1.3,
"jackpotWin": 0,
"jackpotContribute": 0,
"betType": 2,
"betSourceId": 1
}
參數TypeRequiredDescription
actionstringYesFixed to"retryBet"
uidstringYesPlayer Account
roundIdstringYesGame round id
transferIdstringYesUnique Transaction Identifier
brandstringYesGame Brand
currencystringYesCurrency
gameCodestringYesGame Code
betTimestringYesBet Time
txTimestringYesSettle Time
gameInfostringYesAdditional information
actualBetAmtnumberYesActual bet amount
validBetAmtnumberYesValid bet amount
winAmtnumberYesReturn amount
jackpotWinnumberYesJackpot amount
jackpotContributenumberYesJackpot contribution value
betSourceIdnumberYesSource of the transaction

Response Format

info

The response is returned as plaintext JSON and does not require encryption.

Success response

{
"status": "0000",
"errText": "",
"balance": 16.00,
"responseTime": "2025-11-11T01:23:38.271Z"
}
FieldTypeDescription
statusstringTransaction status
errTextstringError message; empty string on success
balancenumberCurrent available balance
responseTimestringResponse time

Transaction status and Transaction Results

StatusDetermine Transaction StatusTrigger RetryTransaction Valid
0000SuccessNoYes
2001SuccessNoYes
9999FailedYesNo
Time OutFailedYesNo

Important Notes

  1. Trigger Condition: When the transaction response between in-game items and the platform wallet times out or encounters an error, this API will be called to retry the transaction.
  2. Transaction Source: Transaction source codes can be referenced in the appendix.
  3. Retry Strategy: If a successful response is not received, retries will continue.
    • Retry Frequency: Retries occur every 30 minutes. Each retry consists of 5 attempts, using an exponential backoff policy between attempts (1s, 3s, 5s, 7s, 9s).
    • Retry Duration: Retries will continue for up to 7 days. If no successful response is received within 7 days, retries will stop.
  4. Idempotency: Ensure that the same combination of roundId + transferId is processed only once.
  5. Balance Consistency: Ensure that retries do not result in duplicate debits or credits.