Download document PDF
get_document_pdfDownload the PDF of an invoice, proforma, credit note or received invoice and save it to a local folder; returns the file path.
Instructions
Download the PDF of an invoice, proforma, credit note or received invoice and save it to a local folder. Returns 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": {
"documentType": "<documentType>",
"id": "<id>"
},
"name": "get_document_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Document ID. | |
| language | No | PDF language. Default: the document's own language. | |
| documentType | Yes | ||
| withPayments | No | Include the payment summary (not for received invoices). |