E-Invoice Mandates and Document AI: Rebuilding Invoice Intake for 2027

By the Wynstra team · · 8 min read

For years, invoice automation has started from the same problem: a PDF arrives, and software has to work out what the page says. Germany and Poland are changing that for domestic business-to-business invoices. More invoices will arrive as structured data, which means the question for finance and operations leaders is no longer only which extraction tool to buy. It is which invoices should bypass extraction altogether, and which still need it. This article sets out the dates, a practical intake design and the checks that matter before 2027.

What the mandates change, and when

Germany has a phased rollout. Since January 1, 2025, all businesses have been required to receive e-invoices. Issuing follows in two steps: from 1 Jan 2027, businesses in Germany with turnover above €800,000 in the prior year (2026) must issue structured e-invoices for domestic B2B supplies. From 1 Jan 2028, the obligation will apply to all. For the transition, invoices agreed for EDI transmission can continue in a non-conforming format for supplies carried out before 1 January 2028, provided the recipient agrees.

Poland began earlier. Mandatory e-invoicing began on 1 February 2026 for taxpayers whose sales exceeded PLN 200 million, including VAT, in 2024. From 1 April 2026, it extended to all other taxpayers covered by the mandate. Sources differ on the final group. One guide says the smallest taxpayers will also be required to use KSeF as of 1 January 2027, while another notes that all other companies, excluding micro-businesses, must begin complying from April 2026. Check the position for each legal entity with your tax adviser rather than relying on a summary.

The EU-wide cross-border regime is further away. That starts for cross-border B2B on 1 July 2030. ViDA sets no turnover threshold, no minimum invoice amount and no headcount limit for cross-border reporting.

Three intake paths you should design for

Once the mandates bite, incoming invoices will fall into three groups, and each needs different handling.

  1. Native structured files. These are XML invoices that can be parsed directly. No character recognition is needed. The work shifts to mapping fields into your ledger and checking the content against the rules.
  2. Hybrid files. The German ZUGFeRD format is the main example. It combines a PDF/A-3 for the visual document with embedded XML that carries the structured invoice data and can map to EN16931. Your system should read the XML and use the PDF for human review.
  3. Image or plain PDFs. These still need document AI extraction, with confidence scores and a human review queue for weak fields. Suppliers in other countries, paper invoices and some Polish cross-border cases will keep this route alive for years. Polish guidance notes that PDFs or paper copies are allowed in certain situations, such as cross-border transactions or when the KSeF platform is temporarily unavailable.

A triage plan for your accounts payable inbox

A workable sequence looks like this:

  • Inventory your suppliers. For the last twelve months, record which format each supplier used and through which channel. This tells you how much volume is already structured.
  • Detect the format on arrival. Classify each file as XML, hybrid, image PDF or email body before any extraction starts.
  • Route by type. Send XML straight to parsing. For hybrid files, read the embedded XML and compare it with the PDF only when a mismatch is flagged. Send image PDFs to extraction.
  • Set confidence thresholds. Fields below your threshold, such as the total, VAT rate or bank details, go to a person. Do not let low-confidence values reach payment runs.
  • Run the same business checks on every route. Check arithmetic, supplier VAT numbers, purchase order matches and duplicates. A correct format does not guarantee a correct amount.
  • Feed exceptions back to supplier onboarding. If a supplier keeps sending images, ask for structured delivery and record the request.

Validation rules still matter

Structured does not mean accepted. In Germany, there is no central clearance platform, so the recipient's validation rules and buyer-specific requirements often decide whether invoices are accepted, even if they are compliant. Your intake should therefore test each incoming file against your own rules, not just the standard.

When the PDF and the XML disagree, the rule matters. German tax guidance, as summarised by one provider, treats the structured XML as prevailing if it differs from the visible PDF, so the XML has to be correct on its own. Build that rule into your system. Do not let staff choose whichever version looks right.

Field completeness is another trap. In Poland, the invoice structure published by the Ministry of Finance includes several hundred fields, most of which are not mandatory. Your mapping has to confirm which fields your ledger actually needs, and reject or query invoices that omit them.

Payment matching also changes. From 1 August 2026, the obligation to include the KSeF number in bank transfers (including payments with a split payment mechanism) will apply to payments made from August 1, 2026. If you pay Polish suppliers, store that number as a matching key.

Retention is a further requirement. In Germany, e-invoices must be kept in their original electronic format for up to 8 years. Keep the original file, including the XML, rather than only a rendered PDF or the extracted data.

Where document AI still earns its place

The mandates cover invoices exchanged between businesses. They do not cover contracts, supplier statements, delivery notes, claims forms or patient-facing paperwork. Those documents will keep arriving as scans and PDFs, so extraction remains a core task. Treat the e-invoice shift as a reason to narrow document AI to the documents that need it, and to measure it on those documents, rather than as a reason to switch it off.

A readiness checklist before January 2027

  • Confirm which legal entities are in scope in Germany and Poland, and their dates.
  • Ask your top suppliers, by volume, what format they will use from 2027.
  • Test your parser on sample XRechnung and ZUGFeRD files, and on rejected or malformed examples.
  • Write down the rule for XML and PDF conflicts, and enforce it in code.
  • Add validation for your own purchasing and ledger rules, not only the standard.
  • Store the KSeF number for Polish invoices and use it in payment matching.
  • Set retention rules that keep original electronic files for the full period.
  • Review confidence thresholds for image PDFs once you know how much volume is left.

The short version: the mandates will shrink the amount of invoice text that needs guessing, but they will not remove the need for validation, exception handling or extraction on other documents. If you want help mapping your intake to these dates, wynstra works on document AI and workflow design and is a reasonable place to start that conversation.

Sources

  • Document Ai
  • E Invoicing
  • Accounts Payable
  • Germany
  • Poland

Have a project in mind?

Tell us what you need. We'll reply within one business day with ideas, a rough timeline and an estimate. No obligation.