Skip to content

Settle Voucher

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

Use this endpoint to trigger a settlement on a voucher pocket. If the ~2~ override is configured on the underlying voucher type’s TransactionOverrides, the funds will be consumed directly back into the user’s root cash balance. Otherwise, this endpoint will simply regenerate a fresh, secure voucher number for the pocket while retaining the existing balance.

Passing 0 for amount will act upon the full balance of the voucher.

FieldTypeRequirementDescription
VoucherNoStringRequiredSource of the funds. A valid Celbux voucher number.
AmountStringRequiredTransaction amount in cents. Pass 0 to consume full balance.
MetadataStringOptionalAny other detail to store with this transaction.
{
"Amount": "20000",
"VoucherNo": "168-29543-25430",
"Metadata": ""
}
Terminal window
curl -X POST '{api-url}/settleVoucher?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"Amount":"20000","VoucherNo":"168-29543-25430","Metadata":""}'