Factur-X API

Validate Factur-X PDFs and their CII XML: POST /v1/invoices/validate extracts factur-x.xml, applies the rules of the declared profile (MINIMUM to EXTENDED, Factur-X 1.09.2), the French BR-FR rules when the billing framework (BT-23) is French, and checks PDF/A-3 with veraPDF. Every finding has its rule id, the official text, an explanation and the line.

Create a Factur-X PDF from JSON (POST /v1/invoices/generate?target=zugferd-facturx) or convert an EN 16931 UBL or CII invoice to one (POST /v1/invoices/convert?target=zugferd-facturx): a PDF/A-3b with a readable invoice page and the CII embedded as factur-x.xml, validated again before it is returned. Factur-X BASIC, EN 16931 and EXTENDED invoices convert to UBL; data that cannot be carried over stops the conversion and is listed.

The API prepares and checks documents. It is not an approved platform (PA): transmission to customers and the tax administration, and e-reporting, go through your platform.

curl https://einvoiceengine.com/v1/invoices/parse \
  -H "Authorization: Bearer $EINV_KEY" \
  -H "Content-Type: application/xml" \
  --data-binary @invoice.xml

Supported here

FormatVersionsChecks
EN 16931 core (UBL 2.1) supportedEN 16931-1:2017 (CEN artefacts 1.3.16)XML well-formedness, UBL 2.1 XML Schema, EN 16931 Schematron (CEN, UBL binding), France: when the business process (BT-23, cbc:ProfileID) is an XP Z12-012 billing framework code (B1, S1, M1 ...), the French CTC rules BR-FR (FNFE-MPE France_RFE 1.4.0.04) and the EN 16931 rules as packaged by FNFE-MPE
EN 16931 core (UN/CEFACT CII D16B) — also Factur-X / ZUGFeRD 'EN 16931' profile XML supportedEN 16931-1:2017 (CEN artefacts 1.3.16)XML well-formedness, CII D16B XML Schema (the syntax binding of EN 16931-3-3), EN 16931 Schematron (CEN, CII binding), France: when the business process (BT-23) is an XP Z12-012 billing framework code (B1, S1, M1 ...), the UN/CEFACT CII D22B XML Schema, the EN 16931 rules as packaged by FNFE-MPE and the French CTC rules BR-FR (France_RFE 1.4.0.04) instead
ZUGFeRD 2.x / Factur-X 1.0 (PDF/A-3 with embedded CII XML, or the CII XML alone) supportedProfile MINIMUM; Profile BASIC WL; Profile BASIC; Profile EN 16931 (COMFORT); Profile EXTENDED; Profile XRECHNUNGExtraction of the embedded XML (factur-x.xml, zugferd-invoice.xml, xrechnung.xml), Factur-X 1.09.2 / ZUGFeRD 2.5 XML Schema of the profile (FNFE-MPE / FeRD), Factur-X 1.09.2 / ZUGFeRD 2.5 Schematron of the profile, including the EN 16931 rules for BASIC, EN 16931 and EXTENDED, Profile XRECHNUNG: XRechnung 3.0.2 CIUS (see XRechnung CII), France: profiles EN 16931, EXTENDED and BASIC WL whose business process (BT-23) is an XP Z12-012 billing framework code get the Factur-X 1.09.2 schema and Schematron as published by FNFE-MPE (France_RFE 1.4.0.04) plus the French CTC rules BR-FR, PDF/A-3 conformance of the PDF container (veraPDF), when the PDF checker is enabled

Full list: supported formats and limitations.

Questions

Which profile does a generated Factur-X have?

EN 16931, the profile that carries the full European invoice. The output is a PDF/A-3b with factur-x.xml, base64-encoded in the JSON response.

Is the ZUGFeRD target the same as Factur-X?

Yes. The target is called zugferd-facturx because both names describe the same file; the embedded XML is named factur-x.xml.

Can I parse a received Factur-X into JSON?

Yes. POST /v1/invoices/parse returns the EN 16931 data of the embedded invoice as JSON.