Skip to main content

Rollback - Transaction Rollback

Cancel or roll back executed transactions, typically used for game cancellations or system anomalies.

Request Parameters

Request Before Decryption

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

For Encryption Description, please refer to [Operator API Implementation Description](./overview.md#1-Security Requirements)

Decrypted Request

{
"action": "rollback",
"uid": "test123",
"roundId": "AAA123",
"transferId": "AAA123",
"brand": "VP",
"gameCode": "VP_230036_1"
}
ParameterTypeRequiredDescription
actionstringYesFixed as "rollback"
uidstringYesPlayer Account
roundIdstringYesGame round number of the original transaction
transferIdstringYesIdentifier of the original transaction (planned for removal)
betIdstringYesBet ID, unique to VP
brandstringYesBrand code, fixed as VP
gameCodestringYesGame Code

Response Format

info

Response is plaintext JSON, no encryption required.

Success Response

{
"status": "0000",
"errText": "",
"balance": 12345.67,
"responseTime": "2024-12-11T01:23:38.271Z"
}
FieldTypeDescription
statusstringStatus Code, see Status Code Description below
errTextstringError message, empty string on Success
balancenumberPlayer Balance after rollback
responseTimestringResponse time

Response Status and Transaction Result

StatusCancellation Status DeterminationTrigger Retry?Cancellation Successful?Bet Status
0000SuccessNoSuccessfulCancelled
9999FailedYesFailedVoided
1006FailedYesFailedVoided
2000FailedYesFailedVoided
2001SuccessNoSuccessfulCancelled
2002FailedYesFailedVoided
2003SuccessNoFailedEstablished
TimeoutFailedYesFailedVoided

Important Notes

  1. Trigger Timing for Transaction Cancellation: When a Bet response times out, this API will be called to cancel the transaction
  2. Processing Requirements: Upon receiving this API request, the specified Bet must be cancelled and the updated Balance returned, or a response indicating the Bet is confirmed as established
  3. Retry Mechanism: If no explicit error is received, retries will continue for four hours
  • For the first hour, at 1-minute intervals
  • For the subsequent three hours, at 10-minute intervals
  1. Status Description:`
  • Cancelled: Transaction cancellation Successful, not included in settlement
  • Voided: Transaction Status unclear, defaults to unsuccessful transaction, not included in settlement
  1. Parameter Adjustment: transferId will be removed and replaced by betId