XRechnung to Factur-X Conversion API
Turn an XRechnung XML invoice (CII or UBL syntax) into a Factur-X compliant PDF/A-3 with embedded XML.
https://api.invoicexml.com/v1/convert/xrechnung/to/facturx
- PDF/A-3 with embedded CII XML
- UBL or CII XRechnung, detected for you
- Readable PDF from your XRechnung
- PDF in English, German or French
Technical reference
Upload an XRechnung XML invoice (CII or UBL syntax, auto-detected) and receive a Factur-X compliant PDF/A-3. The API parses the XRechnung payload, renders a clean visual layer, and embeds the EN 16931 CII baseline as factur-x.xml inside a Factur-X-branded PDF/A-3 container. The XRechnung CIUS layer is downgraded to the EN 16931 baseline so the embedded XML can be consumed by every Factur-X reader.
Code Example
curl -X POST https://api.invoicexml.com/v1/convert/xrechnung/to/facturx \ -H "Authorization: Bearer YOUR_API_KEY" \ -F "[email protected]" \ -F "language=en" \ -F "validationLanguage=de"
Request
| Parameter | Type | Description |
|---|---|---|
| file * | binary | The XML invoice file to convert. |
| language | string | Optional. Language of the rendered PDF (labels and date format) and of the default texts added to the embedded XML when your file has none, such as the payment terms or the VAT exemption reason. Texts your XML already carries are kept exactly as they are. Values: en, de, fr, in any letter case. Defaults to en. Any other value is rejected with a 400 (errorCode 4002). |
| validationLanguage | string | Optional. Language of the finding messages when the converted invoice is rejected: en (default), de or fr, in any letter case. Only each finding's message changes; rule, btCodes, fields and raw stay the same. Independent of language. Any other value is rejected with a 400 (errorCode 4002). See localized error messages. |
Content-Type: multipart/form-data
Headers
| Header | Value |
|---|---|
| Authorization * | Bearer YOUR_API_KEY |
| Content-Type | multipart/form-data |
Response
200 Converted XML
Returns the Factur-X PDF/A-3 as a binary file.
Useful resources
Companion material for integrating against the API.
Runnable samples in C#, Java, PHP, Python, Node.js, and browser JavaScript, one repository per format.
github.com/InvoiceXML
Typed clients for C#, Java, PHP, Node.js and Python, installed from the registry you already use.
www.invoicexml.com/docs/sdk
The full OpenAPI 3.1 document. Drop it into Postman, Insomnia, or any code generator to scaffold a client.
api.invoicexml.com/v1/openapi
Browse and call every endpoint directly from the browser, powered by Scalar.
api.invoicexml.com/v1/scalar
Frequently Asked Questions
Ready to automate your invoices?
Validate, convert and embed compliant e-invoices through one API. Start your 30-day free trial. No credit card required.