| to | Yes | Recipient, buyer, client, or tenant counterparty details. | |
| from | Yes | Issuer, seller, landlord, or service provider party details. | |
| items | No | Billable line items, milestones, rent schedules, or fee breakdowns. | |
| notes | No | Customer-facing notes, remittance instructions, or project context. | |
| terms | No | Payment terms, late fee policy, or governing legal clauses. | |
| theme | No | Preset visual typography and color theme. | |
| title | No | Optional custom document heading override (e.g., 'TAX INVOICE' or 'RESIDENTIAL LEASE AGREEMENT'). | |
| is_paid | No | Whether the document is marked PAID IN FULL. | |
| currency | No | Currency symbol or ISO code (default '$', supports 'USD', 'EUR', 'GBP', 'CAD', 'AUD', 'JPY'). | |
| doc_type | Yes | The archetype or category of document to synthesize (e.g., invoice, invoice_freelance, estimate, receipt, credit_note, agreement, nda, residential_lease, commercial_nnn_lease). | |
| due_date | No | Payment due date or expiration date in YYYY-MM-DD format. | |
| tax_rate | No | Percentage tax rate applied to subtotal (e.g., 8.25 for 8.25%). | |
| doc_number | No | Unique document or invoice identifier (e.g., 'INV-2026-0042'). Auto-generated with archetype prefix when omitted. | |
| issue_date | No | Document issue date in YYYY-MM-DD format. | |
| payment_link | No | Optional HTTPS checkout URL (e.g., Stripe Payment Link) embedded as a clickable link and vector QR code. | |
| primary_color | No | Custom primary brand hex color (e.g., '#4f46e5'). | |
| discount_amount | No | Document-level flat discount subtracted before grand total. | |
| payment_qr_code | No | When true and payment_link is provided, embeds a vector SVG QR code for 1-scan mobile checkout. | |