Void invoice
o2c_void_invoiceVoid an invoice that should never have been issued. Only an invoice with no cash applied to it can be voided, and voiding puts the quantities back to uninvoiced so the order can be billed correctly. An invoice the customer has already paid against is corrected with a credit note, never voided — the money moved, and the record has to keep saying so. Effects: invoice.status -> void; order_line.qty_invoiced released.
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": {
"invoice_id": "<invoice_id>",
"reason": "<reason>"
},
"name": "o2c_void_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reason | Yes | Why it is being voided. | |
| invoice_id | Yes | The invoice. An existing invoice id. |