Skip to content

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

Reverse Transaction

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

Use this call to reverse a completed transaction. Funds are reversed from the merchant’s cash balance, and the commission is returned to the merchant.

FieldTypeRequirementDescription
StoreIDStringRequiredA unique store identifier code for the merchant.
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.

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