Prepare deleting a draft or proforma
prepare_delete_invoice_draftChecks that an invoice draft, or a proforma not converted to an invoice (open, expired or cancelled), can be deleted and returns a summary of the deletion for the user's confirmation: the type, status, number and date, the customer, the gross total, the number of items and the effect of deleting (it can't be undone; the number of a deleted proforma can be given to the next proforma), with a one-time confirmation token valid for 10 minutes. Issued, cancelled and corrective invoices and converted proformas can't be deleted. No data of the company or its documents is changed.
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>"
},
"name": "prepare_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. |