AI Guide

E-Invoicing: The structured electronic invoice standard for German B2B compliance

E-invoicing in Germany means a legally defined structured data format - XRechnung or ZUGFeRD - that machines can read and process without manual data entry. Since January 2025, all German B2B companies must be able to receive e-invoices, with a phased obligation to send them completing by 2028. Learn below what formats apply, which deadlines matter, and how finance teams use e-invoicing as the foundation for fully automated accounts payable workflows.

Key Facts
  • All German companies must receive structured e-invoices since 1 January 2025
  • Sending obligation phases in by turnover: all companies above EUR 800k from 1 January 2027, all others from 1 January 2028
  • Two accepted formats: XRechnung (pure XML) and ZUGFeRD (hybrid PDF plus embedded XML)
  • Full automation cuts invoice handling time by 60-80% compared to paper (Bitkom)
  • Estimated annual savings of up to EUR 13,500 per company through reduced manual effort

Definition: E-Invoicing

E-invoicing in Germany is the mandatory exchange of invoices in a structured, machine-readable data format complying with European standard EN 16931, enabling automated processing without manual data entry.

Core characteristics of e-invoicing

E-invoicing uses defined XML data structures instead of unstructured documents, allowing receiving systems to extract and post invoice data directly into ERP or accounting software.

  • Machine-readable XML data structure conforming to EN 16931
  • Two accepted German formats: XRechnung (pure XML) and ZUGFeRD (hybrid PDF plus XML)
  • Legal obligation for all domestic B2B transactions in Germany, phasing in 2025 to 2028
  • GoBD-compliant archival requirements replacing paper-based audit trails

E-Invoicing vs. PDF invoice

A PDF invoice is a document for human reading and carries no machine-readable data. An e-invoice embeds structured XML data that ERP and accounting systems extract directly. A ZUGFeRD invoice looks identical to a PDF but contains an embedded XML payload, enabling both human reading and automated processing. An XRechnung contains only XML with no visual representation.

Importance of e-invoicing in enterprise AI

E-invoicing creates the data foundation for straight-through processing in accounts payable. According to Bitkom, full automation cuts invoice handling time by 60-80% compared to paper, with estimated savings of up to EUR 13,500 per company per year. For AI-powered workflow automation, structured invoice data eliminates the OCR extraction step entirely and enables downstream automation without additional data preparation.

Methods and procedures for e-invoicing

Implementing e-invoicing involves format selection, ERP integration, and archival compliance across both inbound and outbound invoice flows.

Format selection: XRechnung vs. ZUGFeRD

XRechnung is mandatory for invoices to German public authorities (B2G) and is a pure XML file. ZUGFeRD is the hybrid format preferred by Mittelstand companies for B2B transactions because it remains human-readable while embedding the structured XML payload.

  • XRechnung: required for all government invoice recipients; mandatory format for B2G
  • ZUGFeRD 2.x COMFORT or EXTENDED profile: recommended for B2B automation workflows
  • Both formats satisfy EN 16931 and qualify for the German e-invoicing mandate

ERP and accounting system integration

Standard ERP and accounting systems used in the German Mittelstand - SAP, DATEV, Lexware, Sage, and others - have released e-invoice modules. Integration covers inbound processing (automatic import and field mapping) and outbound generation (structured XML creation from existing order data).

  • Inbound: automatic XML parsing, field mapping, and posting to accounts payable
  • Outbound: XML generation from sales orders with schema validation before dispatch
  • Three-way matching against purchase orders and goods receipts for touchless processing

GoBD-compliant archival

Every e-invoice must be archived in its original machine-readable format for ten years under the German Grundsätze ordnungsmäßiger Buchführung (GoBD). Converting a ZUGFeRD invoice to a plain PDF for archival discards the XML payload and creates a compliance violation. Data governance policies must define retention rules, access controls, and audit trails for all archived e-invoice data.

Important KPIs for e-invoicing

Successful e-invoicing programs are measured across processing efficiency, compliance readiness, and exception management.

Operational efficiency metrics

  • Invoice processing time: target under 2 minutes per invoice (vs. 9 minutes for paper)
  • Straight-through processing rate: target above 80% without manual intervention
  • Exception rate: target below 15% of inbound invoices requiring manual review
  • Cost per processed invoice: target under EUR 2 (vs. EUR 9-15 for paper handling)

Strategic compliance metrics

Beyond efficiency, e-invoicing programs must demonstrate mandate compliance. Bitkom reports that 43% of German companies already send e-invoices. Companies that delay beyond transition periods risk losing VAT deduction rights on non-compliant inbound invoices - a direct financial exposure that finance teams must track separately from operational metrics.

Quality and accuracy metrics

AI-assisted matching should achieve three-way match accuracy above 95% against purchase orders and goods receipts. Remaining exceptions should feed into a structured approval workflow with documented escalation paths and resolution times below 48 hours for non-disputed items.

Risk factors and controls for e-invoicing

E-invoicing creates specific compliance and operational risks that require proactive controls from day one.

Format and schema compliance failures

Invoices that fail EN 16931 schema validation are legally not e-invoices and cannot satisfy the mandate. Pre-submission validation using official tools - KoSIT for XRechnung - must be part of every outbound workflow.

  • Run schema validation before every outbound invoice submission
  • Monitor inbound invoices for non-compliant formats from suppliers
  • Maintain a supplier readiness register tracking format compliance by vendor

GoBD archival gaps

Archiving only the PDF layer of a ZUGFeRD invoice while discarding the XML payload creates a GoBD violation. Systems must preserve the original format unchanged throughout the 10-year retention period.

Transition period dependency risk

Companies that rely on transition permissions until 2027 or 2028 but delay building receive-side infrastructure will face invoice rejections from compliant trading partners. Early investment in intelligent document processing for inbound e-invoices eliminates this risk while delivering efficiency gains as the mandate phases in.

Practical example

A 95-employee precision tooling manufacturer in Baden-Württemberg processed around 1,400 supplier invoices per month through a semi-manual accounts payable team. Three staff spent roughly 40% of their time on data entry, account coding, and exception handling. After integrating ZUGFeRD inbound processing with their ERP and activating AI-powered three-way matching, the straight-through rate reached 83% within three months.

  • Automatic parsing of ZUGFeRD XML directly into ERP cost center and account codes
  • AI-driven three-way matching against open purchase orders and goods receipts
  • Exception queue with pre-populated resolution suggestions for the remaining invoices
  • GoBD-compliant archival with original XML retained alongside PDF display layer

Current developments and effects

The German e-invoicing mandate is evolving toward a national transaction reporting system that will make structured invoice data the backbone of real-time VAT compliance.

National reporting system aligned with ViDA

Germany is preparing a domestic transaction-based reporting system aligned with the EU VAT in the Digital Age (ViDA) directive. Structured e-invoicing is the prerequisite - companies building robust e-invoice infrastructure now will extend it for real-time reporting without a second transformation project.

  • ViDA expected to require near-real-time invoice data submission from 2028
  • Structured XML data from e-invoices feeds reporting pipelines automatically
  • Companies without e-invoice infrastructure will face double transformation costs

AI-native accounts payable

E-invoicing data enables AI agents to move from assisted matching to fully autonomous invoice processing. Machine-readable line items, tax codes, and supplier identifiers allow agents to apply business rules, detect anomalies, and release payments without human touchpoints for compliant invoices.

European interoperability through PEPPOL

The PEPPOL network provides a standardized exchange infrastructure used across EU member states. German companies trading internationally can use PEPPOL-compliant ZUGFeRD or XRechnung to satisfy both the German mandate and cross-border e-invoicing requirements in France, Italy, Belgium, and other mandating countries simultaneously.

Conclusion

E-invoicing in Germany is a compliance requirement with a clear 2028 hard deadline, but the companies capturing the most value treat it as the foundation for accounts payable automation rather than a minimum compliance checkbox. The structured data in XRechnung and ZUGFeRD eliminates the OCR extraction layer and enables straight-through processing rates above 80%, directly reducing headcount demand in finance teams facing recruitment pressure. For Mittelstand companies building an AI automation agenda, e-invoicing is the most pragmatic starting point: legally mandated, well-supported by major ERP vendors, and delivering measurable ROI within the first operating quarter.

Frequently Asked Questions

What is the difference between XRechnung and ZUGFeRD?

XRechnung is a pure XML file containing only machine-readable structured data with no visual representation. ZUGFeRD is a hybrid format combining a human-readable PDF with an embedded XML payload. Both comply with EN 16931 and satisfy the German e-invoicing mandate. Mittelstand companies typically prefer ZUGFeRD because it remains readable without special software, while XRechnung is mandatory for invoices to government entities.

When does my company need to start sending e-invoices?

All German companies must already be able to receive e-invoices since 1 January 2025. For sending: companies with prior-year turnover above EUR 800,000 must send e-invoices from 1 January 2027. All remaining companies must comply from 1 January 2028. Until the applicable deadline, PDF and paper invoices remain valid with recipient consent.

Does e-invoicing apply to small companies too?

Yes. The mandate applies to all domestic B2B transactions regardless of company size. The only extended transition is for companies with annual turnover below EUR 800,000, which have until 31 December 2027 to begin sending. However, every company must already be able to receive structured e-invoices since January 2025, regardless of size.

How do we archive e-invoices to comply with GoBD?

E-invoices must be stored in their original machine-readable format for ten years. For ZUGFeRD, this means retaining the full PDF/A-3 file with the embedded XML intact - not just a visual PDF. Document management systems must prevent modification after archival and provide access for tax audits on request. Deleting the XML layer or converting to another format during archival creates a GoBD violation.

What does e-invoicing implementation cost for a Mittelstand company?

For companies already using DATEV, SAP, Lexware, or Sage, implementation typically means activating an existing module with integration costs of EUR 5,000 to 25,000 for setup, process mapping, and configuration. The Bitkom estimate of EUR 13,500 in annual savings means most implementations reach payback within the first year of operation.

Does e-invoicing affect GDPR compliance?

E-invoice files contain personal data including contact names, addresses, and banking details, so standard GDPR rules apply: data minimization, defined retention periods, and access controls. The GoBD 10-year archival obligation and the GDPR data minimization principle can create tension - legal advice on the applicable retention rule is recommended when invoice data includes personal employee information.

Building better software Contact us together