Skip to content
Giminger ConsultingDE

E-invoice, PDF and paper: where AI helps and where it does not

Key takeaway

Structured e-invoices such as XRechnung or ZUGFeRD already contain their data in machine-readable form and need validation rather than AI to read them. AI pays off for everything that arrives unstructured: PDF invoices without a data record, scans, credit notes, delivery notes, and for matching to purchase order, cost centre and account.

Lessons in this path
  1. E-invoice, PDF and paper: where AI helps and where it does not
  2. Extract and check invoice data with AI
  3. Approval, ERP handover and audit-proof archiving

What counts as an e-invoice under the law?

Since the revision of Section 14 of the German VAT Act, an e-invoice in Germany is an invoice in a structured electronic format that allows automatic processing and complies with the European standard EN 16931. A plain PDF is therefore not an e-invoice but an “other invoice”. Common formats are XRechnung, a pure XML file, and ZUGFeRD, a PDF with an embedded XML file.

The obligation to receive applies since 1 January 2025 to domestic transactions between businesses. Issuing is subject to phased transition rules that have been under discussion several times. Check the current status in the German Federal Ministry of Finance FAQ. Austria and Switzerland have different rules; this section is orientation, not tax advice.

Three input channels, three processing types

In practice, invoices will continue to arrive in mixed form. The skill lies in processing each input with the right tool instead of sending everything through the same AI model.

Input and suitable processing
InputProcessingRole of AI
XRechnung (XML)Validate and take fields directlynone for reading; possibly an account coding suggestion
ZUGFeRD (PDF with XML)Validate and use the XML partComparison if PDF and XML differ
PDF without data recordText recognition and extractionExtract fields, check plausibility
Paper, photo, scanScan, OCR, extractionas for PDF, with more checking effort

With ZUGFeRD, the structured part is the legally relevant one. If the visual and data parts differ, your process should detect this and route it to a person.

Where AI really helps

Language models and specialised document AI read unstructured documents surprisingly well: supplier, invoice number, date, net, tax, gross, line items, bank details. The bigger benefit, however, often lies beyond that: which purchase order does it belong to? Which cost centre? Has the delivery note arrived? Does the price match the order confirmation?

These matching questions take up most of the time in accounting. AI can make suggestions here that a person confirms, for example based on previous postings for the same supplier. Decisions about payment, early-payment discount or deductions remain with people.

  • Extracting fields from PDF and scans
  • Matching suppliers and purchase orders
  • Suggesting account coding and cost centre
  • Flagging differences between invoice, order and delivery note
  • Drafting queries to suppliers

Going deeper: validation before intelligence

For XRechnung and ZUGFeRD there are official validation rules (Schematron rules for EN 16931 and the German specification). A freely available validator, such as the KoSIT validator, checks whether a file is formally correct. Put this check at the start of your chain. A language model that “reads” XML is slower, more expensive and less reliable than a parser.

A robust architecture therefore separates: input detection (which format?), deterministic processing of structured data, AI extraction only for unstructured documents, then the same plausibility rules for all documents, such as totals check, tax rate, duplicate detection and comparison of bank details with the master record.

Example: a machine builder with mixed invoice intake

Example (fictional): a machine builder with 120 employees receives invoices by email, via a supplier portal and occasionally by post. An analysis over one month shows a growing share arrives as ZUGFeRD or XRechnung, the rest as PDFs without a data record or on paper.

The team sets up a central invoice mailbox. Structured invoices are validated and taken over directly. PDFs and scans go through AI extraction. After that, the same checks apply to both routes: totals, tax rate, duplicates, bank details against master data, order number against ERP.

After three months it becomes clear that most rework does not come from reading the invoices but from missing order numbers. Purchasing then starts asking suppliers to include the order number.

Common mistakes

  • Reading structured e-invoices with a language model instead of validating and parsing them.
  • Automating only extraction and forgetting matching to order and cost centre.
  • Not checking differences between the PDF view and XML data in ZUGFeRD.
  • Taking transition rules and deadlines from blog articles without checking the official source.

Frequently asked questions

Do we necessarily need new software for e-invoices?

Not necessarily, but you must be able to receive XRechnung and ZUGFeRD, make them readable and archive them in an audit-proof way. Many accounting and ERP systems now offer this; check the features of your version.

May an AI post invoices automatically?

Technically it is possible. For a mid-sized business, a suggestion with human approval is usually the better start, until you can show over months for which suppliers and invoice types the error rate is negligible. Agree the process with your tax adviser.

What about foreign suppliers?

The German obligation concerns domestic transactions. Invoices from abroad will continue to arrive in many formats and are a typical case for AI extraction with review.

Try it yourself

For one month, count your incoming invoices by channel and format (XRechnung, ZUGFeRD, PDF, paper) and record for ten invoices how much time reading, matching and approval each take.

Check your result

You know what share of your invoices needs no AI, where most time is lost and whether AI pays off more for reading or for matching.

Official documentation and sources

Practical guides and references