Automation MCP Server Features Blog Pricing Contact

Convert PDF to XRechnung API

EN 16931 and KoSIT-compliant XML for German B2G portals. Try the REST API demo, no code required. Drop a PDF to see exactly what InvoiceXML returns.

Required for XRechnung. The Leitweg-ID is the routing identifier for your German government recipient.

Drop a PDF to test the API

or browse files to upload

REST API demo · POST /transform/to/xrechnung · PDF · Max 20 MB

From Messy Scanned PDF to Compliant XML

See exactly how your invoices are transformed automatically.

PDF Invoice

Unstructured

Legacy / scanned PDF with no embedded data

AI Extraction

Processing

OCR & AI extraction with confidence scores

Data Mapping

Structuring

Data mapped to selected compliance schema

Compliant Output

Validated ✓

All validation checks passed (XSD + Schematron)

Why XRechnung for German E-Invoicing?

XRechnung is the mandatory format for invoicing German public authorities. Unlike hybrid PDF formats, XRechnung delivers a pure, machine-readable XML that government portals process automatically, no manual data entry, no delays. With Germany's e-invoicing mandate expanding to B2B from 2025, adopting XRechnung now future-proofs your invoicing workflow and ensures compliance with both national and European regulations.

Developer API

Built for Developers

A single REST endpoint. Send a PDF, receive structured XML. Built for ultra-high concurrency and sub-second processing.

  • Supports all formats: DOCX, XLSX, PDF, images, no preprocessing needed
  • Works on scanned and photographed invoices
  • Every response validated against official Schematron rules

Supports ZUGFeRD · Factur-X · XRechnung · UBL · CII · EN 16931

API Documentation
Terminal
$ curl -X POST https://api.invoicexml.com/v1/transform/to/xrechnung \
  -H "Authorization: Bearer sk_live_..." \
  -H "Content-Type: multipart/form-data" \
  -F "[email protected]"

// => 200 OK
// => { "id": "inv_8f3k...", "status": "completed" }

Frequently Asked Questions

What is XRechnung?

XRechnung is the German standard for electronic invoicing with public authorities. It implements the European Norm EN 16931 as a CIUS (Core Invoice Usage Specification) and adds stricter rules required by German federal, state, and municipal government recipients.

Is XRechnung mandatory in Germany?

Yes. Since November 2020, all invoices sent to German federal authorities must be in XRechnung format. Most state and municipal authorities have followed with similar mandates. From 2025, all German businesses must be able to receive structured e-invoices.

What is a Leitweg-ID?

A Leitweg-ID is a routing identifier used by German government recipients to direct incoming invoices. It is mandatory for XRechnung invoices sent to public authorities. Our converter detects Leitweg-IDs in your PDF automatically when present.

How does XRechnung differ from ZUGFeRD?

XRechnung produces a standalone XML file designed for automated processing on B2G portals like ZRE and OZG-RE. ZUGFeRD produces a hybrid PDF with embedded XML, intended primarily for B2B exchange. Both conform to EN 16931 but serve different submission channels.

Start free today

Ready to automate your invoices?

Validate, convert and embed compliant e-invoices through one API. Start your 30-day free trial. No credit card required.

GDPR Compliant No credit card required Setup in minutes
Peppol UBL
Factur-X
EN 16931
142 / 142 passed
Compliant
PDF/A-3 embedded