Download Source Document
get_documentDownload the source document attached to purchase invoices, sale invoices, journals, or bank transactions. For large files or metadata-only requests, returns filename and size instead of base64 content.
Instructions
Download the source document (base64) attached to a purchase invoice, sale invoice, journal, or bank transaction. Documents larger than ~5 MB, or when metadata_only=true, return name and size only (the base64 payload is omitted to protect the MCP transport).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ID of the record whose document to download. | |
| entity_type | Yes | Which record the source document belongs to. | |
| metadata_only | No | Return only the filename and size, not the (potentially large) base64 contents. |