UBL 2.1 invoice API

Produce UBL 2.1 XML invoices from the same simple JSON you use for PDFs — a free, developer-friendly way to emit structured invoice documents for interoperability and archival.

Quick answer

POST your invoice as JSON with output:"ubl" and the Invovate API returns a UBL 2.1 XML document. It uses a free inv_ key. Note: this generates UBL documents — it is not a regulated e-invoicing transmission network.

Endpoint
POST /api/generate-invoice with output:"ubl"
Format
UBL 2.1 (OASIS Universal Business Language) XML
Use
Interoperability & archival — not Peppol/Factur-X transmission
Auth
Free inv_ key
Also
Same payload emits PDF and JSON

Request

Switch output to ubl on the standard endpoint:

curl -X POST https://invovate.com/api/generate-invoice \ -H "Authorization: Bearer inv_your_key" \ -H "Content-Type: application/json" \ -d '{"output":"ubl","from":{"name":"Acme LLC"},"to":{"name":"Globex"},"items":[{"description":"Consulting","quantity":2,"unit_price":150,"tax_rate":20}]}'

The response is a UBL 2.1 <Invoice> XML document.

What UBL is for

UBL 2.1 is a standard XML format that other accounting and procurement systems can import. Invovate emits a valid UBL document so you can hand structured invoice data to a downstream system or archive it in a portable format.

Compliance boundary

Invovate generates the UBL document. It does not transmit invoices over Peppol, or produce Factur-X / ZUGFeRD / XRechnung / NF-e regulated formats, or file anything with a tax authority. Use a certified access point for regulated e-invoicing delivery.

Frequently asked questions

Is there a free UBL invoice API?

Yes — the Invovate API outputs UBL 2.1 XML when you set output:"ubl", on a free tier with a free key.

Is this Peppol / regulated e-invoicing?

No. Invovate produces UBL 2.1 documents for interoperability and archival; it is not a Peppol access point or a regulated transmission service.

Can I get the same invoice as a PDF?

Yes — the same JSON payload emits PDF, JSON totals, or UBL 2.1 by changing the output field.

Related

Not regulated e-invoicing. Invovate generates invoice documents (PDF, JSON, UBL 2.1) but is not a regulated electronic-invoice transmission service — no Peppol / Factur-X / ZUGFeRD / XRechnung / NF-e compliance or government-network delivery. UBL export is for interoperability and archival only.