cancel_sales_invoice
Marks a sales invoice as cancelled by ID without deleting the record, preserving accounting history. Use it to void invoices while keeping audit trails intact.
Instructions
Cancel a sales invoice (HTTP DELETE on /cancel — does not delete the record, marks it cancelled).
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": "cancel_sales_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Sales invoice ID |