Get purchase invoice PDF
get_purchase_invoice_pdfRetrieve the PDF attached to a purchase invoice by its ID. Returns the file as a base64-encoded string or saves it to a specified path.
Instructions
Get purchase invoice PDF.
Download the PDF attached to a purchase invoice as a base64-encoded string.
[Purchase Invoices] GET /invoices/purchase/pdf/{id}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the purchase 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. | |
| administration | No | The client administration to act on. Only one is configured: default. |