Void an invoice
invoices_voidVoid one invoice of a company and answer it whole: on FreeAgent, which writes off what it still owes, an invoice sent and past its due date alone; on Xero, by its Status VOIDED, an approved invoice no payment is set against alone, Xero refusing any other in its own words. On Zoho Books, any invoice Zoho voids, Zoho moving the payments and credits applied to it to the customer's credits and refusing any other in its own words. On QuickBooks, any invoice QuickBooks voids, sent against the invoice as just read, QuickBooks zeroing its amounts and putting Voided before its private note, and refusing any other in its own words. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. Each call is one write, sent to the company's program once - to FreeAgent, or to Xero under a request key of its own, so Xero never takes it twice. A Zoho Books organisation's write goes to Zoho Books, which takes no request key. One given in another program's names, or naming an id of another program's form, is not_written with reason refused, nothing sent; one Xero keeps from the person's Xero role, with reason xero_role. A company set to read only refuses it before its program is asked, and so do words that screen as a prompt attack. outcome is written with the record; not_written with reason and, where its program refused it, what it said; or unknown where its answer never came and reading the books back could not tell, found naming every identical new record where two were made and none where that read itself failed. A write whose answer never came is settled by reading the books back, never sent again. Where the screening holds back its program's words in the answer, the outcome and each record's id stand, marked withheld with why. A QuickBooks company's write goes to QuickBooks under a request key of its own, so QuickBooks never takes it twice.
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": "<company>",
"invoice": "<invoice>"
},
"name": "invoices_void"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | Yes | The id companies_list gives the company. | |
| invoice | Yes | The invoice's id, as invoices_list answers it. |