Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Confirm Transaction

POST {api-url}/confirm?ns={community}

Use this call to finalize a transaction previously held in a pending state. This provides a robust handling for complex payment scenarios (e.g., partial payments) by allowing the merchant to either complete the transaction (confirm) or cancel it (reverse).

FieldTypeRequirementDescription
AmountStringRequiredWhether to confirm or reverse this transaction (-1 to confirm, 0 to reverse).
OldReferenceStringRequired**The reference number given to the original transaction.
TIDStringRequired**TID (Transaction ID) of the executed payment response.
ReferenceStringOptional*A new unique transaction reference number given by the merchant.
MetadataStringOptionalAny other detail that the merchant wishes to store on this transaction.

*Reference numbers must be unique identifiers otherwise an error will be returned.

**Either the TID or OldReference must be supplied. If both are supplied, OldReference will be used.

{
"Amount": "-1",
"OldReference": "101",
"TID": "14975698673",
"Reference": "111",
"Metadata": "{\"ActorUserIDs\": \"547828938941114\"}"
}
Terminal window
curl -X POST '{api-url}/confirm?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"Amount":"-1","OldReference":"101","TID":"14975698673","Reference":"111","Metadata":"{\"ActorUserIDs\": \"547828938941114\"}"}'