Actions8
Generate Invoice
AI-generatedSummary
Generate an A4 invoice PDF for each incoming item using one of five templates. Set the company and client details, invoice dates and number, currency, and line items; optionally add tax, colors, notes, terms, and payment instructions.
Inputs
- Template — Choose Modern Minimal, Corporate Professional, Creative Bold, Classic Elegant, or Tech Startup. Defaults to Modern Minimal.
- Company details — Company name, address, email, and phone shown on the invoice.
- Client details — Client name, address, and email shown in the billing section.
- Invoice details — Invoice number, issue date, due date, and currency symbol.
- Quick Add Items — Enter one item per line as
Name (qty) (price$)orName (price$); quantity defaults to 1. Numbered lines are supported. When nonempty, this takes precedence over Line Items. Detected currency symbols must match the Currency Symbol field, and all detected symbols must agree. - Line Items — If Quick Add Items is blank, provide item descriptions, quantities, and unit prices. If no items are provided, the operation adds a placeholder item priced at 100.
- Tax Rate (%) — Percentage applied to the subtotal to calculate tax; defaults to 0.
- Primary Color and Secondary Color — Hex colors used for template accents and backgrounds where supported. Defaults to #2563eb and #f1f5f9.
- Notes, Terms & Conditions, Payment Instructions — Optional invoice footer text, including notes, terms, and payment details.
Output shape
One output item per input item, each containing JSON and a binary PDF in the data field.
The JSON includes
success,template,invoiceNumber,invoiceDate,dueDate,itemCount,subtotal,tax, andtotal; monetary totals are strings formatted to two decimal places. The PDF is namedinvoice_<invoiceNumber>.pdfand has MIME typeapplication/pdf. This operation does not consume an input PDF.