Get sales order PDF
get_sales_order_pdfRetrieve a sales order's PDF as a base64-encoded string. Specify the order ID to download or save the file to a local path.
Instructions
Get sales order PDF.
Download the PDF of a sales order as a base64-encoded string.
[Sales Orders] GET /orders/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_order_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the sales order. | |
| 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. |