Download Source Document
get_documentDownload the source document attached to a purchase invoice, sale invoice, journal, or bank transaction. Returns base64 content or metadata for large files.
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. |