Download an invoice attachment
download_sales_invoice_attachmentDownload a sales invoice attachment as base64 content or save it to a file. Retrieve file content for attachments linked to a sales invoice by providing invoice and attachment IDs.
Instructions
Download an invoice attachment.
Download the file content of an attachment linked to a sales invoice, base64-encoded. Works for both shared library attachments and invoice-specific document attachments, as long as the attachment is linked to this invoice. The file content is only returned by this endpoint, not in the invoice GET response.
[Sales Invoices] GET /invoices/sales/{id}/attachments/{attachment_id}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the sales invoice. | |
| save_path | No | Optional absolute file path to write the decoded file to. When omitted the file is returned inline as a base64 resource. | |
| attachment_id | Yes | The ID of the attachment to download. | |
| administration | No | The client administration to act on. Only one is configured: default. |