m3_delete_invoice
Delete an invoice by ID and year. Fails if dependent records such as stock movements exist, preserving data integrity.
Instructions
Delete an invoice by ID and year. Fails if the invoice has dependent records (e.g. stock movements).
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": {
"type": "<type>",
"id": "<id>",
"year": "<year>"
},
"name": "m3_delete_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Invoice record ID | |
| type | Yes | Invoice type | |
| year | Yes | Accounting year |