Delete an invoice
distru-delete-invoiceWriteQuickBooksPermanently deletes an invoice and its payments. Removes the invoice from QuickBooks if it's there, and its payments too when your settings sync payments.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Invoice to delete. Resolve via distru-search-invoices. |
Output
| Field | Type | Presence |
|---|---|---|
| deleteInvoice | boolean | Can be null |
What the AI reads
Permanently deletes an invoice; this is not a void and can't be undone. Every payment on the invoice, voided ones included, is deleted with it, and credit applied through those payments is released back onto the credits. Credits created by overpaying this invoice are canceled and their uses deleted, so any other invoice that credit paid goes back up by that amount. The company's custom invoice-delete rules can refuse it. The sales order keeps its lines; distru-create-invoice can invoice it again once it has no invoices left and isn't canceled or merged. When QuickBooks is connected, the QuickBooks invoice and its payments are scheduled for deletion there. Requires authentication via Authorization header.