Skip to content

How to validate XRechnung in your software without running the KoSIT validator

Validate XRechnung, ZUGFeRD and Peppol invoices from your own application with one HTTP call instead of running and updating the Java KoSIT validator and its Schematron yourself.

Updated November 23, 20263 min read

Send the invoice to a validation API that runs the official KoSIT validator for you, and read the result as JSON. The rules stay exactly the official ones; what you no longer do yourself is run Java, install the validator configuration, update it with every release and turn its report into messages your users understand.

What it takes to run the KoSIT validator yourself

The KoSIT validator is the open-source reference validator for XRechnung. Running it in production means:

  • a Java runtime and the validator, as a service or a command-line call per file;
  • the XRechnung validator configuration (Schematron for EN 16931 and XRechnung), which KoSIT releases several times a year;
  • extracting the XML from ZUGFeRD PDFs yourself, and separate rules for Factur-X and Peppol;
  • parsing an XML report with German rule texts into something your users can act on;
  • tests that prove a new release does not change your results unnoticed.

None of it is hard; all of it is work that never ends.

Validating with one HTTP call

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

Send XML (application/xml) or a ZUGFeRD / Factur-X PDF (application/pdf). The format is detected; the response tells you:

  • status: valid, invalid or unsupported, and the detected format and profile;
  • findings: every failing rule with ruleId, severity, the official text, an explanation, a suggestion and the line in the file;
  • ruleset: the exact configuration used, so a stored result stays traceable.

Add ?lang=de (or fr, es, it, pl, nl, pt) for explanations in your user's language. The official text is always included unchanged.

Same rules, pinned versions

The service runs the KoSIT validator with the official configuration — today XRechnung 3.0.2 with the release of 31 August 2026 — and veraPDF for the PDF/A part of ZUGFeRD. Pin a rule set with rules=2026-11 to keep results reproducible, and move to a new one when the changelog announces it. The official XRechnung test invoices of KoSIT and the official ZUGFeRD examples run through the test suite with every update.

Validity is decided only by the official rule sets. No language model decides whether an invoice passes.

SDK and other languages

The API is plain HTTPS and JSON, so every language works; examples for TypeScript, Python and shell are in the quick start, and the full contract is the OpenAPI document. A typed TypeScript client is described in SDK and command line.

What about data protection?

The public check on the website stores nothing. Over the API, store=false keeps the invoice only for the time of the check; with storage on, documents are encrypted and kept for the retention period you set. Servers are in Germany. See security and data retention.

Frequently asked questions

Is the result the same as with the KoSIT validator?

Yes: the same validator and configuration produce the same findings. The API adds the explanation, the suggestion and the JSON structure.

Do I need a paid plan to try it?

No. Test keys are free and run against the real engine; see pricing for live documents.

Can I validate many invoices at once?

Yes, with batches, or asynchronously with async=true. Documents above 2 MB always run as jobs.

Can I self-host it?

There is a self-hosting guide for organisations that must keep everything on their own servers.

Check your invoice against the official rules

Upload an XML or PDF invoice. You get every failing rule with an explanation, the fix and the line in the file. Free, without sign-up; the check on this page stores nothing.

Drop an invoice hereXRechnung, EN 16931 or Peppol (UBL / CII), a ZUGFeRD / Factur-X PDF, Facturae or KSeF FA(3). Up to 2 MB.
No invoice at hand?

Processed in memory and not stored. No sign-up needed.