Skip to main content
Documentation for version v74

Roll back temporary transaction

Description

Rolls back a temporary transaction created with the is_temp flag. After rollback, the active points balance is recalculated.

Request URL

Method: POST

https://example.com/api/v1.1/loyalty/rollback_transaction

Request parameters

ParameterTypeExampleRequiredDescription
transaction_idstring"TRANS12345"NoTemporary transaction ID
transaction_eidstring"TRANS12345"NoExternal temporary transaction ID

At least one of the identifiers must be provided (transaction_id or transaction_eid).

Request example

{
"transaction_id": "TRANS12345"
}

Response example

{
"error": 0,
"error_text": "Successful operation",
"data": {
"transaction_id": "TRANS12345",
"balance": "399.50"
}
}

Response parameters

ParameterTypeDescription
errorintError code
error_textstringError text
transaction_idstringRolled-back transaction ID
balancestringCurrent active points balance of the member after rollback