Render invoice PDF
invoice_pdfRender a stored invoice as an A4 PDF and return its file path, including issuer, client, dates, items, taxes, totals, and payment details.
Instructions
Call this tool to write one stored invoice as an A4 PDF and return the path: issuer, BILL TO, dates, items, taxes and totals. Free stamps a credit line and no logo; Pro renders it unbranded with your logo.
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": {
"number": "<number>"
},
"name": "invoice_pdf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| number | Yes | Invoice number to render, as returned by invoice_create | |
| out_path | No | Where to write the PDF; defaults to <data dir>/pdf/<number>.pdf. The page carries the issuer block, the BILL TO client block, dates, an item table with wrapped descriptions, subtotal, discount, one tax line per rate, the total, payment details and notes, and every money value on it carries its currency code. Use a .pdf path: the bytes written are always PDF |