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
| Parameter | Type | Example | Required | Description |
|---|---|---|---|---|
| transaction_id | string | "TRANS12345" | No | Temporary transaction ID |
| transaction_eid | string | "TRANS12345" | No | External temporary transaction ID |
At least one of the identifiers must be provided (transaction_id or transaction_eid).
Request example
- JSON
- XML
{
"transaction_id": "TRANS12345"
}
<xml>
<transaction_id>TRANS12345</transaction_id>
</xml>
Response example
- JSON
- XML
{
"error": 0,
"error_text": "Successful operation",
"data": {
"transaction_id": "TRANS12345",
"balance": "399.50"
}
}
<xml>
<error>0</error>
<error_text>Successful operation</error_text>
<data>
<transaction_id>TRANS12345</transaction_id>
<balance>399.50</balance>
</data>
</xml>
Response parameters
| Parameter | Type | Description |
|---|---|---|
| error | int | Error code |
| error_text | string | Error text |
| transaction_id | string | Rolled-back transaction ID |
| balance | string | Current active points balance of the member after rollback |