Skip to main content

Rollback - Transaction Rollback

Cancel or roll back an executed transaction. This is typically used in scenarios such as game cancellation or system exceptions.

Request Parameters

Request Body Before Decryption

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

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

Request Body After Decryption

{
action: 'rollback',
uid: 'test123',
roundId: 'AAA123',
transferId: 'AAA123',
brand: 'VP',
gameCode: 'VP_230036_1'
}
參數TypeRequiredDescription
actionstringYesfix to "rollback"
uidstringYesPlayer Account
roundIdstringYesGame round id
transferIdstringYesUnique Transaction Identifier
brandstringYesGame Brand
gameCodestringYesGame Code

Response Format

info

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

Success response

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

Transaction status and Transaction Results

StatusRollback StatusTrigger RetryTransaction ValidTransactionStatus
0000SuccessNoYesRollback
9999FailedYesNoRejected
1006FailedYesNoRejected
2000FailedYesNoRejected
2001SuccessNoYesRollback
2002FailedYesNoRejected
2003SuccessNoNoSettled
Time OutFailedYesNoRejected

Important Notes

  1. Cancel Trigger: When a bet response times out, this API will be called to cancel the transaction.
  2. Processing Requirement: Upon receiving this API request, the system must cancel the specified bet and return the updated balance, or respond that the bet has been successfully confirmed.
  3. Retry Mechanism: If no explicit error is received, retries will continue for up to four hours.
    • During the first hour, retries occur at 1-minute intervals.
    • During the following three hours, retries occur at 10-minute intervals.
  4. Status Description:
    • Rollback: The transaction is successfully canceled and will not be included in settlement.
    • Rejected: The transaction status is unclear and is treated as an unsuccessful transaction by default; it will not be included in settlement.