EN 16931 API
Validate EN 16931 core invoices in UBL 2.1 or UN/CEFACT CII with the official CEN/TC 434 XML Schema and Schematron (POST /v1/invoices/validate). Findings carry the rule id, the official text, an explanation in eight languages and the line in the file.
Parse UBL, CII or a ZUGFeRD PDF into one JSON shape that follows the EN 16931 business terms (POST /v1/invoices/parse), create UBL, CII, Peppol or ZUGFeRD documents from that JSON (POST /v1/invoices/generate), and convert between the syntaxes (POST /v1/invoices/convert). Amounts stay exact decimal strings.
curl https://einvoiceengine.com/v1/invoices/parse \ -H "Authorization: Bearer $EINV_KEY" \ -H "Content-Type: application/xml" \ --data-binary @invoice.xml
Supported here
| Format | Versions | Checks |
|---|---|---|
| EN 16931 core (UBL 2.1) supported | EN 16931-1:2017 (CEN artefacts 1.3.16) | XML well-formedness, UBL 2.1 XML Schema, EN 16931 Schematron (CEN, UBL binding) |
| EN 16931 core (UN/CEFACT CII D16B) — also Factur-X / ZUGFeRD 'EN 16931' profile XML supported | EN 16931-1:2017 (CEN artefacts 1.3.16) | XML well-formedness, CII D16B XML Schema, EN 16931 Schematron (CEN, CII binding) |
Full list: supported formats and limitations.
Questions
Which national rules are included?
XRechnung documents get the KoSIT XRechnung 3.0.2 rules and Peppol documents the OpenPeppol BIS Billing 3.0.21 rules, on top of EN 16931. The specification identifier in the document decides.
Is there a JSON Schema for the invoice model?
Yes, in the OpenAPI document under components.schemas.Invoice.
Can I pin the rule version?
When creating documents, yes: POST /v1/invoices/generate accepts rules=… to pin the rule-set bundle. Every validation result names the rule set it was checked with.
E-Invoicing API