voidInvoice
voidInvoiceVoid an approved or paid invoice that has a zero balance, typically after a full credit-note offset.
Instructions
Void an invoice. ONLY works on approved or paid invoices with invoice_total == 0 (zero-balance, typically after a full credit-note offset). For non-zero approved invoices, issue a credit note via createInvoiceCreditNote first to bring the balance to zero, then void. If the call returns INVOICE_CANNOT_BE_VOIDED, surface that error verbatim — do NOT retry, do NOT escalate to deleteInvoice. Host enforces user confirmation via the approval gate; do NOT ask the user to re-confirm before calling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | The unique identifier (UUID) of the invoice to void. | |
| __userContext | No | Internal user context for multi-tenant authentication and approval workflow |