Cancels an invoice.
POST
/v2/invoices/{invoice_id}/cancel
Cancels an invoice.
The seller cannot collect payments for the canceled invoice.
You cannot cancel an invoice in the DRAFT
state or in a terminal state: PAID
, REFUNDED
, CANCELED
, or FAILED
.
Guide
The ID of the invoice to cancel.
The version of the invoice to cancel. If you do not know the version, you can call GetInvoice or ListInvoices.