Render XRechnung as PDF using REST-API
Upload an XRechnung XML file (CII or UBL syntax) and receive a clean, professionally formatted PDF preview. The API parses the XML against CIUS-REC-DE rules, maps every EN 16931 Business Term to a readable layout, and returns a downloadable PDF. The rendered PDF is for human readability only — it carries no legal standing.
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/xrechnung/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/xrechnung/to/pdf \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "[email protected]"
Frequently Asked Questions
Does this work with both UBL and CII XRechnung syntax?
Yes. XRechnung can be encoded in either UBL or CII XML syntax. The API auto-detects the syntax from the root element and renders both correctly.
Is the rendered PDF legally valid?
No. The PDF is a visual representation of the XRechnung data for human readability only. The original XRechnung XML file remains the authoritative invoice document for compliance and tax purposes.
Which XRechnung versions are supported?
All versions: XRechnung 1.2, 2.0, 2.1, 2.2, 2.3, and 3.0. The version is auto-detected from the CustomizationID in the XML.
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. XRechnung files are typically a few kilobytes, so this limit is unlikely to be reached in practice.