delete_invoice
Deletes an unposted customer invoice and automatically removes its line items. For posted invoices, void them or issue a credit note instead.
Instructions
Delete an unposted customer invoice.
Automatically removes associated entries (line items). Posted invoices cannot be deleted — void them or issue a credit note instead.
Args:
id: Invoice ID (e.g., "000001" or "INV-2026-001").
Preferred parameter name — matches get_invoice /
post_invoice / etc.
invoice_id: Legacy alias for id. Accepted for
back-compat; pass exactly one of id or
invoice_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| invoice_id | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |