voidInvoice
Void an issued invoice, cancelling it permanently. A voided invoice stays in the history but is no longer owed, and it cannot be restored. Returns the invoice read after the void. Only an issued invoice with no payment and no payment in progress can be voided: a draft is deleted with deleteInvoice, and a paid invoice is refunded with createCreditNote. 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": "voidInvoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoiceId | Yes | The id of the invoice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes |