Skip to content

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

Withdraw

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

Execute a withdrawal transaction. Note that a R10.00 fee will be applied, unless specified otherwise. Ensure that the voucher balance is sufficient to cover both the withdrawal amount and the fee. For example, if you want to withdraw R100.00, you would need a valid voucher of R110.00.

FieldTypeRequirementDescription
VoucherNoStringRequiredSource of the funds. A valid Celbux voucher number.
AmountStringRequiredTransaction amount in cents (e.g., 2000 for R20.00).
CurrencyStringRequiredDefault is currency of merchant (e.g., ZAR).
StoreIDStringRequiredA unique store identifier code for the merchant.
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",
"Currency": "ZAR",
"StoreID": "Store1",
"Reference": "101",
"Metadata": "{\"ActorUserIDs\": \"547828938941114\"}"
}
Terminal window
curl -X POST '{api-url}/withdraw?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"VoucherNo":"168-41405-74358","Amount":"2000","Currency":"ZAR","StoreID":"Store1","Reference":"101","Metadata":"{\"ActorUserIDs\": \"547828938941114\"}"}'