Skip to content

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

Reverse Voucher to Cash

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

Execute a reverse closure transaction based on a given voucher number. You can process a partial reversal; however, take note that the original voucher number will be regenerated if partial. Any amount up to the voucher’s total can be entered, and funds are reversed from the voucher’s balance.

If the voucher corresponds to a Voucher Type, the type will be dissolved, and the funds returned back to the merchant’s balance as cash.

FieldTypeRequirementDescription
VoucherNoStringRequiredSource of the funds. A valid Celbux voucher number.
AmountStringRequiredTransaction amount in cents.
StoreIDStringRequiredA unique store identifier code for the merchant.
CurrencyStringRequiredDefault is currency of merchant (e.g., ZAR).
ReferenceStringOptional*A 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.

{
"VoucherNo": "168-41405-74358",
"Amount": "2000",
"StoreID": "Store1",
"Reference": "101",
"Currency": "ZAR",
"Metadata": "{\"ActorUserIDs\": \"547828938941114\"}"
}
Terminal window
curl -X POST '{api-url}/reverseClosure?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"VoucherNo":"168-41405-74358","Amount":"2000","StoreID":"Store1","Reference":"101","Currency":"ZAR","Metadata":"{\"ActorUserIDs\": \"547828938941114\"}"}'