upload_document_from_path
Upload a local PDF file directly to the Yuki archive. Handles file reading and encoding internally, so you don't need to pass base64 strings. Use when the file is available on disk.
Instructions
Upload a PDF from a local file path to the Yuki archive. Reads and encodes the file internally — no need to pass base64 strings. Use this instead of upload_document when the file is available on disk. Call get_document_folders first to find the correct folder ID.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | Total amount on the document (e.g. invoice total including VAT) | |
| folder | No | Archive folder ID. Use get_document_folders to list available folders. | |
| project | No | Project code to link this document to a Yuki project | |
| remarks | No | Internal remarks shown in the archive | |
| currency | No | ISO 4217 currency code for the document amount | EUR |
| fileName | No | Override the file name sent to Yuki. Defaults to the basename of filePath. | |
| filePath | Yes | Absolute path to the file on the local filesystem (e.g. '/tmp/invoice-2024-0042.pdf') | |
| costCategory | No | GL account code for automatic cost categorisation (e.g. '4000') | |
| paymentMethod | No | Payment method code. 0 = unknown, 1 = transfer, 2 = direct collection | |
| administrationId | No | Administration ID (GUID). Defaults to YUKI_DOMAIN_ID env var. |