Automation 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" }

Complete XRechnung Toolkit

Everything you need to create, convert, validate, and preview XRechnung invoices — via REST API or online.

Build a validated XRechnung 3.0 CII XML from structured data — ready for ZRE, OZG-RE, or Peppol.

Validate XRechnung XML against EN 16931 and KoSIT CIUS Schematron rules.

Convert any PDF invoice into a validated XRechnung XML using AI extraction.

Render an XRechnung XML as a human-readable PDF for review and approval.

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.

Ready to automate your invoices?

Start your 30-day free trial. No credit card required.

Get Started