Cancel Invoice
Cancel an open invoice to prevent payment
Cancel an invoice
Cancel an open invoice. Only OPEN invoices can be canceled.
Cancel takes the merchant-side UUID (id), not the public inv_* identifier. This is the id you received from invoices.create().
Response
Idempotent cancellation
Canceling an already-canceled invoice returns success — no error is thrown. This makes retries safe:
Only OPEN invoices can be canceled
Attempting to cancel a PAID, EXPIRED, or PAYING invoice throws an error:
After cancellation
Once canceled:
- The invoice status becomes
CANCELED - Payment methods are removed from the public view
- The
invoice.canceledwebhook fires (if configured) - The invoice is no longer payable