Create PDF Invoice
pop_create_pdf_invoiceCreate a printable PDF invoice with company logo, custom footer, and billing/shipping addresses. Optionally email the PDF to up to 3 recipients.
Instructions
Generate a PDF invoice with optional branding and email delivery.
Creates a printable PDF invoice. Can include company logo, custom footer, and billing/shipping addresses. The PDF can be emailed automatically to up to 3 recipients (Basic+ plan required for email).
Configuration via data.pdf:
invoice_html: '"true"' to generate HTML version
doc_type_title: Title shown on document (e.g. 'Invoice', 'Receipt', 'Credit Note')
logo_url: Company logo URL (HTTPS)
head.store_info_address: Supplier address displayed in header
head.billing: Customer billing address array
email_invoice.to: Array of up to 3 recipient emails (requires Basic+ plan)
email_invoice.from: Reply-to email address
footer_text: Custom footer message
Returns: PDF binary data or confirmation JSON with email delivery status.
Args:
data: Invoice data with data.pdf configuration populated
send_email: Set true to deliver PDF via email (requires email_invoice in data.pdf)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Full invoice data object. Must include data.pdf configuration for PDF-specific settings. | |
| site_url | No | ||
| send_email | No | If true, emails the PDF to recipients in data.pdf.email_invoice.to (max 3 addresses, Basic+ plan required). | |
| site_title | No | ||
| environment | No | Target environment (e.g. 'sandbox') | |
| plugin_version | No |