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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "delete_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice ID to delete |