zoho_attach_document
Attach receipts, bills, or journal documents to Zoho Books records via multipart upload, using base64 file content or server file path.
Instructions
Attach a document (receipt / source doc) to a Zoho Books record via multipart upload — e.g. an expense receipt (path '/expenses/{id}/receipt', field 'receipt'), a bill attachment (path '/bills/{id}/attachment', field 'attachment'), or a journal attachment (path '/journals/{id}/attachment', field 'attachment'). Provide the file EITHER as file_content (base64 — for docs you hold in-context / received in chat) plus file_name (filename WITH extension, e.g. 'invoice.pdf'; Zoho detects the type from it), OR as file_path (a file on the server host). Allowed types: gif, png, jpeg, jpg, bmp, pdf, xls, xlsx, doc, docx. Gated by ZOHO_ALLOW_WRITES.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Attach endpoint after /books/v3, e.g. /expenses/12345/receipt or /journals/678/attachment. | |
| query | No | ||
| file_name | No | Filename WITH extension for the upload, e.g. 'receipt.pdf'. Required when using file_content. | |
| file_path | No | Alternative to file_content: absolute path to a file on the server host. | |
| field_name | No | Multipart form field name. Default 'receipt' (use 'attachment' for journals/bills). | |
| file_content | No | Base64-encoded file bytes (a 'data:...;base64,' prefix is tolerated). Use this for docs you hold in-context. Requires file_name. |