Automatisation Blog Tarifs Contact

Convert PDF to EN 16931 using REST-API

Convert a PDF invoice into an electronic invoice that conforms to the European EN 16931 semantic standard. The API maps extracted data to the EN 16931 data model and returns a compliant XML document in CII syntax — the same core format accepted across all EU member states.

POST /v1/convert/en16931

Request

Parameter Type Description
file * binary The PDF invoice file to convert.

Content-Type: multipart/form-data

Headers

Header Value
Authorization * Bearer YOUR_API_KEY
Content-Type multipart/form-data

Response

200 Returns the EN 16931 compliant XML document.
Content-Type: application/xml

Code Example

curl -X POST https://api.invoicexml.com/v1/convert/en16931 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "[email protected]"

Frequently Asked Questions

What is EN 16931?

EN 16931 is the European standard for the semantic data model of an electronic invoice. It was mandated by EU Directive 2014/55/EU and defines the business rules every compliant e-invoice must satisfy.

Is EN 16931 mandatory?

Yes, for public procurement (B2G) across all EU member states. Many countries are extending the mandate to B2B transactions — Germany from 2025 and France from 2026.

What output syntax does this endpoint produce?

By default, the endpoint produces CII (Cross Industry Invoice) syntax. Both CII and UBL are valid syntaxes under EN 16931.

How does EN 16931 relate to Factur-X and ZUGFeRD?

Factur-X and ZUGFeRD are hybrid PDF/XML formats that embed an EN 16931 compliant CII XML inside a PDF/A-3. EN 16931 defines the data model they all share.

Are country-specific extensions (CIUS) supported?

The base output follows the EN 16931 core rules. For country-specific extensions like XRechnung (Germany) or CIUS-FR (France), use the dedicated endpoints.