Download document file
easybill_download_documentDownload easybill documents as PDF or e-invoicing files and save them locally. Supports multiple formats including PDF, Zugferd, XRechnung, and JPG.
Instructions
Download a document as a PDF or e-invoicing file and save it to a local path.
Supported formats: 'pdf' (plain), 'zugferd1', 'zugferd2_2' (PDF with embedded XML), 'xrechnung2_3', 'xrechnung3_0' (XML), and 'jpg' (first page as an image).
Returns the saved file path and its size in bytes. The file content itself is NOT loaded into the conversation, so this is safe for large PDFs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The numeric easybill ID of the document to download | |
| format | No | File format to request. | |
| output_path | Yes | Absolute path to write the file to, e.g. '/Users/me/Desktop/invoice-123.pdf'. Parent directory must exist. |