Render UBL Invoice as PDF using REST-API
Upload a UBL 2.1 invoice or credit note and receive a clean, professionally formatted PDF preview. The API parses the UBL XML, identifies the Peppol BIS profile or national CIUS from the CustomizationID, maps all EN 16931 Business Terms to a readable layout, and returns a downloadable PDF. Supports Peppol BIS 3.0, PINT, XRechnung UBL, and plain EN 16931 UBL.
Try it out online — no coding required
Upload an XML file and get a readable PDF preview instantly, right in your browser.
https://api.invoicexml.com/v1/render/ubl/to/pdf
Request
| Parameter | Type | Description |
|---|---|---|
| file * | binary | The XML invoice file to render as PDF. |
Content-Type: multipart/form-data
Headers
| Header | Value |
|---|---|
| Authorization * | Bearer YOUR_API_KEY |
| Content-Type | multipart/form-data |
Response
Code Example
curl -X POST https://api.invoicexml.com/v1/render/ubl/to/pdf \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "[email protected]"
Frequently Asked Questions
Does this support UBL credit notes?
Yes. Both <Invoice> and <CreditNote> root elements are supported. Credit notes are rendered with appropriate labelling.
Which Peppol profiles are supported?
Peppol BIS Billing 3.0, PINT (Peppol International), and national profiles including NLCIUS (Netherlands) and EHF (Norway). The profile is auto-detected from the CustomizationID.
Can I render XRechnung files encoded in UBL syntax?
Yes. XRechnung allows both UBL and CII syntax. If your XRechnung file uses UBL syntax, this endpoint renders it correctly.
Is the invoice data stored?
No. Files are processed entirely in memory and deleted immediately after the PDF is returned. No invoice data is written to disk or retained.
What is the maximum file size?
20 MB. UBL files are typically 5–50 KB, so this limit is never a constraint in normal usage.