Skip to content

Invoice XML to JSON

The parse endpoint reads UBL, CII or a ZUGFeRD / Factur-X PDF and returns one JSON shape for all of them, following the EN 16931 business terms: seller, buyer, lines, VAT breakdown, totals, payment instructions.

Amounts stay exact decimal strings. Anything the model cannot hold is listed as a warning with its path and line, so nothing disappears silently.

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

Supported here

FormatVersionsChecks
XRechnung 3.0 (UBL 2.1 Invoice / CreditNote) supported3.0.2XML well-formedness, UBL 2.1 XML Schema, EN 16931 Schematron (CEN, UBL binding), XRechnung 3.0.2 CIUS Schematron (KoSIT)
XRechnung 3.0 (UN/CEFACT CII D16B) supported3.0.2XML well-formedness, CII D16B XML Schema, EN 16931 Schematron (CEN, CII binding), XRechnung 3.0.2 CIUS Schematron (KoSIT)
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)
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, EN 16931 Schematron (CEN, CII binding)

Full list: supported formats and limitations.

Questions

Is there a JSON Schema?

Yes, in the OpenAPI document under components.schemas.Invoice.