Get sales invoice PDF
get_sales_invoice_pdfRetrieve a sales invoice PDF by ID, returning it as a base64-encoded string or saving it to a specified file path.
Instructions
Get sales invoice PDF.
Download the PDF of a sales invoice as a base64-encoded string.
[Sales Invoices] GET /invoices/sales/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_sales_invoice_pdf"
}
}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. | |
| administration | No | The client administration to act on. Only one is configured: default. |