deleteInvoice
Delete a draft invoice. Deleting is permanent and cannot be undone. Returns the draft as it was before the delete. Only a draft can be deleted: an issued invoice is voided with voidInvoice instead. Get invoiceId from getInvoices. Never invent UUIDs; only use values from prior tool responses.
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": {
"invoiceId": "<invoiceId>"
},
"name": "deleteInvoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | The id of the invoice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes |