Change a sales order on Zoho Books
sales_orders_updateChange one sales order of a Zoho Books organisation - its details, a line by its line_item_id, or a line added naming its item by item_id - and answer it whole. Only the fields given change, by Zoho's own names: the customer stays, and every line the change does not name goes back by its line_item_id, so each stays as it was. One Zoho refuses, as a sales order it has invoiced, is not_written with what Zoho said. A FreeAgent company or Xero organisation keeps no sales orders and is refused before its program is asked, saying what stands in for one there. Each write is sent to Zoho Books once. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. A company set to read only refuses it before Zoho is asked, and so do words that screen as a prompt attack. outcome is written with the record; not_written with reason and, where Zoho 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 Zoho's words in the answer, the outcome and each record's id stand, marked withheld with why.
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>",
"sales_order": "<sales_order>",
"changes": "<changes>"
},
"name": "sales_orders_update"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| changes | Yes | On Zoho Books, only what changes, by the names sales_orders_get answers a sales order with; the customer stays. | |
| company | Yes | The id companies_list gives the company. | |
| sales_order | Yes | The sales order's id, as sales_orders_list answers it. |