Create a purchase order on Zoho Books
purchase_orders_createCreate a purchase order to a supplier in one Zoho Books organisation and answer it whole with its lines, by Zoho's own names: its supplier by vendor_id, each line naming the account it is spent against by account_id, as accounts_list answers it, and the item it orders by item_id where there is one, with the tax its edition asks for, as invoices_create says. Zoho keeps a new purchase order a draft, and it is not emailed to the supplier: it is issued or sent from Zoho Books itself. The write reaches Zoho Books once, Zoho taking no request key; one whose answer never came is written where one purchase order of that supplier holding everything sent was made since, and not_written where none was. On Zoho Books the organisation's own workflow rules in Zoho may still email on any write. A FreeAgent company or Xero organisation is refused before anything is sent, the refusal saying where that program does it. A company set to read only refuses it before Zoho Books 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 Books 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 Books'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>",
"purchase_order": "<purchase_order>"
},
"name": "purchase_orders_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| company | Yes | The id companies_list gives the company. | |
| purchase_order | Yes | On Zoho Books, the purchase order by the names purchase_orders_get answers one with, its supplier by vendor_id, and its lines, each naming the account it is spent against. |