Attach a file on Zoho Books and QuickBooks
attachments_createAttach one file - a picture or a PDF - to one record of a company, beside any it already holds. On Zoho Books it goes on an invoice, bill, expense, journal or credit note, and that record is answered whole with its files under documents, each with the id attachments_get reads it by; the file is not emailed, nor set to go with the invoice's or credit note's email. The write reaches Zoho Books once, Zoho taking no request key; one whose answer never came is written where the record holds one more file of that name, and not_written where it holds none. On a QuickBooks company it goes on any transaction and is answered as attachment - its id, by which attachments_get reads it, its FileName, ContentType and Size and the record it is on - kept by a file_name holding no double quote, backslash or line break. QuickBooks takes no request key for a file: it is sent once, and one whose answer never came is settled by the files attached to that record since, by its size. 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 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.
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>",
"attach_to": "<attach_to>",
"record": "<record>",
"file": "<file>"
},
"name": "attachments_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | Yes | The file, a picture or a PDF of at most 2.9 MB, which Zoho Books or QuickBooks keeps attached to the record. | |
| record | Yes | The record's id, as its own list or read answers it. | |
| company | Yes | The id companies_list gives the company. | |
| attach_to | Yes | The kind of record the file goes on. On Zoho Books, invoice, bill, expense, journal or credit_note. On QuickBooks, its kind by QuickBooks' own name - Invoice, Bill, Estimate, CreditMemo, JournalEntry, PurchaseOrder or TimeActivity as its own list answers it; for an expense, cheque or card charge, the name QuickBooks gives spending from a bank or card account, and Deposit or Transfer, as bank_transactions_list answers their lines; Payment or BillPayment as payments_list answers one received or made; VendorCredit for a supplier's credit; SalesReceipt or RefundReceipt. |