Delete a draft or proforma
delete_invoice_draftDeletes the invoice draft, or the proforma not converted to an invoice, summarised by prepare_delete_invoice_draft once the user has confirmed it, using its confirmation token. Deleting can't be undone; the number of a deleted proforma is free again, and deleting a draft created from a proforma reopens that proforma. Refused, with the token used up, when the token expired or doesn't match, or the document changed after the preparation (e.g. an item added or the proforma converted). A repeated call with the same token returns the same answer without deleting again.
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": {
"company_id": "<company_id>",
"invoice_id": "<invoice_id>",
"confirmation_token": "<confirmation_token>"
},
"name": "delete_invoice_draft"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company_id | Yes | The id of the company, from list_companies. | |
| invoice_id | Yes | The id of the invoice draft or proforma, from list_invoices. | |
| confirmation_token | Yes | The confirmation_token of the answer of prepare_delete_invoice_draft for this document. |