Cancel Invoice
Cancel an open invoice to prevent payment
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().
Canceling an already-canceled invoice returns success — no error is thrown. This makes retries safe:
Attempting to cancel a PAID, EXPIRED, or PAYING invoice throws an error:
Once canceled:
CANCELEDinvoice.canceled webhook fires (if configured)