Render invoice PDF
invoice_pdfGenerate an A4 PDF for a stored invoice, including issuer, bill-to, dates, items, taxes, and totals. Returns the file path; free version adds a credit line, Pro uses your logo unbranded.
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.
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 |