Download invoice PDF
download_invoiceSaves an invoice PDF to the local export directory using its invoice ID and returns the file path.
Instructions
Save an invoice PDF into the local export directory and return the file path.
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": {
"invoice_id": "<invoice_id>"
},
"name": "download_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Relative file path inside the export directory. Defaults to invoices/<number>.pdf. | |
| invoice_id | Yes |