generate_invoice_pdf
Generate a PDF invoice with customizable fields, templates, and tax calculations. Get a shareable hosted link or save the file locally.
Instructions
Generate a PDF invoice. By default returns a shareable 7-day hosted link that renders the PDF (best for chat — give the link to the user). If save_path is provided, the binary PDF is written to that local file instead. Set INVOVATE_API_KEY (free) for reliable PDF output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | Yes | The business issuing the invoice. | |
| to | Yes | The customer being billed. | |
| items | Yes | Line items (at least one). | |
| currency | No | ISO 4217 code, e.g. USD, EUR, GBP. Default USD. | |
| language | No | Invoice language. Default en. ar/ja/hi/ru render with embedded fonts. | |
| template | No | PDF template. Default classic. | |
| number | No | Invoice number; auto-generated if omitted. | |
| date | No | ISO date, e.g. 2026-06-01. | |
| due_date | No | ||
| po_number | No | ||
| notes | No | ||
| terms | No | Payment terms, e.g. "Net 30". | |
| global_tax | No | Tax % applied to all lines without their own tax_rate. | |
| global_discount | No | ||
| global_discount_type | No | ||
| shipping | No | ||
| deposit | No | ||
| amount_paid | No | Amount already paid (for partial invoices). | |
| payment | No | ||
| accent_color | No | Hex color like #2563eb. | |
| save_path | No | Optional absolute path to write the .pdf file to. If omitted, a 7-day hosted link is returned. |