Commit temporary transaction
Description
Commits a temporary transaction created with the is_temp flag.
If a temporary points accrual transaction is committed, a new full transaction is created.
Request URL
Method: POST
https://example.com/api/v1.1/loyalty/commit_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 identifier must be provided.)
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 | Committed transaction ID |
| balance | string | Current active points balance of the member |