Invoices
POST/v1/invoices/{invoice_id}/void

Cancels an open or uncollectible invoice. It’s kept for your records, and its payment page tells the customer it was cancelled. This can’t be undone.

Permissioninvoices:write

Headers#

Idempotency-Keystringheader

8–80 letters, digits, - or _. Lets you retry safely: the same key and body return the first answer and never move money twice. See Idempotency.

Path parameters#

invoice_idstringrequired

The invoice, such as inv_UfwyBh1W4Jfa6iG2u2AVT3.

Returns#

The invoice, now void.

Errors#

StatusCodeWhen
409INVALID_INVOICE_STATUSIt’s a draft (delete it instead), or already paid or void.

The common codes, such as UNAUTHENTICATED and RATE_LIMITED, can come from any endpoint. See Errors.