Palbase Payments · API
POST
/payments/invoices/{invoice_id}/voidVoid an invoice
Voids an open or uncollectible invoice at its provider: nothing more can be paid on it. A paid invoice is not voided (409 invoice_status_conflict): refund its payment. 409 invoice_permission_required when the channel may not write invoices.
Called by your server, with the project's secret key.
Path
invoice_idstring · requiredThe invoice's id, as Palbase gave it.curl
curl -X POST "https://<your-ref>.palbase.studio/payments/invoices/<invoice_id>/void" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200OK
defaultStandard Palbase JSON error envelope (`error` and `error_description`).
Operation VoidInvoice of payments's contract.