Skip to content

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

Pay

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

Execute a payment transaction.

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}/pay?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\"}"}'