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}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "get_purchase_invoice_pdf"
}
}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. |