generate_pdf_invoice
Generate a polished, human-readable PDF invoice from structured invoice data (supplier, customer, line items, totals) and return it as a base64-encoded document. Local rendering; pairs with send_email_resend to email the PDF as invoice.pdf.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lines | Yes | One or more invoice line items. | |
| notes | No | Optional footer notes / payment terms. | |
| dueDate | No | Optional due date (ISO 8601). | |
| currency | No | ISO 4217 currency code (uppercase). Defaults to EUR. | EUR |
| customer | Yes | The company being BILLED. | |
| supplier | Yes | The company ISSUING the invoice (you / your business). | |
| issueDate | Yes | Issue date (ISO 8601), e.g. 2026-06-06. | |
| invoiceNumber | Yes | Invoice number, e.g. "INV-2026-0001". |