Automation MCP Server Blog Pricing

CII to Factur-X Conversion API

Turn a standalone UN/CEFACT CII XML invoice into a Factur-X compliant PDF/A-3 with embedded XML in one call.

POST https://api.invoicexml.com/v1/convert/cii/to/facturx
  • PDF/A-3 with embedded CII XML
  • Readable PDF from your XML
  • PDF in English, German or French
  • Validated before delivery

Technical reference

Upload a UN/CEFACT Cross Industry Invoice (CII) XML document and receive a Factur-X compliant PDF/A-3 with the XML embedded as the factur-x.xml attachment. The API parses the CII payload, renders a clean visual layer, and writes Factur-X-branded XMP metadata (fx: namespace) into the output container.

Code Example

curl -X POST https://api.invoicexml.com/v1/convert/cii/to/facturx \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]" \
  -F "language=en" \
  -F "validationLanguage=fr"

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.

Content-Type: application/pdf

Useful resources

Companion material for integrating against the API.

Frequently Asked Questions

How does this differ from /v1/embed/facturx?

/v1/embed/facturx attaches your supplied XML to your supplied PDF, the visual layer stays exactly as you uploaded it. /v1/convert/cii/to/facturx generates a fresh visual layer from the structured XML, so you only need the XML to produce a complete hybrid PDF.

Is the output Schematron-validated?

Yes. The input CII is validated against EN 16931 rules before the PDF is built. Validation failures are returned as 400 with the specific rule violations.

In which language is the PDF?

English by default. Send language=de or language=fr to label the Factur-X PDF in German or French. The same language words the default texts the API adds to the embedded XML when your file has none, such as the payment terms. Texts your XML already carries stay exactly as they are.

Can I get the validation messages in German or French?

Yes. Send validationLanguage=de or validationLanguage=fr with the upload, and the message of every finding comes back in that language. The rule, btCodes and fields stay the same in every language, so your code can keep matching on them.

Start free today

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.

GDPR Compliant No credit card required Setup in minutes
Peppol UBL
Factur-X
EN 16931
142 / 142 passed
Compliant
PDF/A-3 embedded