Skip to content

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

Refund (TID or Reference)

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

Execute a refund transaction based on the reference number or transaction ID of the original transaction. You can process multiple partial refunds. Any amount up to the original transaction amount can be entered. Funds are reversed from the merchant’s cash balance, and the commission is returned to the merchant.

FieldTypeRequirementDescription
AmountStringRequiredTransaction amount in cents.
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.

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