Skip to content

ZUGFeRD API

Send a ZUGFeRD or Factur-X PDF to the API: it extracts the embedded XML, validates it with the rules of its profile and PDF/A-3, and returns the invoice as JSON.

Going the other way, convert an XRechnung or EN 16931 UBL / CII invoice to a ZUGFeRD PDF (target zugferd-facturx): a PDF/A-3b document with a readable invoice page and the CII embedded as factur-x.xml. Every generated PDF is validated again before it is returned.

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

Supported here

FormatVersionsChecks
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), PDF/A-3 conformance of the PDF container (veraPDF), when the PDF checker is enabled

Full list: supported formats and limitations.

Questions

Can the API generate ZUGFeRD?

Yes. POST /v1/invoices/convert?target=zugferd-facturx returns a PDF/A-3b with profile EN 16931 or XRECHNUNG, base64-encoded in the JSON response.

What does the generated PDF look like?

A plain one-column invoice page (seller, buyer, lines, VAT, totals, payment) rendered from the same data as the XML. Fonts and colour profile are embedded as PDF/A requires.