generate_invoice_ubl
Create a UBL 2.1 XML invoice for interoperability or archival. Returns XML as text via the Invovate API.
Instructions
Generate a UBL 2.1 XML invoice (for interoperability/archival — NOT a regulated e-invoice transmission; no Peppol/Factur-X/XRechnung compliance). Returns the XML as text. Requires INVOVATE_API_KEY.
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. |