Delete invoice
delete_invoicePermanently deletes one invoice together with its line items and any PDF uploaded for it. Use it to remove a draft the user no longer wants, or an imported invoice that nothing depends on. It cannot be undone. Only drafts and unused imports can be deleted: an imported invoice that has an email, a reminder, a payment or a credit note is rejected, and so is any invoice finalized here, which stays on record and is cancelled with a credit note. The credit spent on an import is not refunded. It does not email anyone.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice ID to delete |