E-Invoicing and AI Agents: A Control-First Architecture for German Accounting
Source: Bundesministerium der Finanzen — BMF-Schreiben: Einführung der obligatorischen E-Rechnung (Anpassung UStAE)·Published 15 October 2025
Germany's B2B e-invoicing mandate turns supplier invoices into structured data, and that makes AI agents in accounts payable far more capable. But structured data is not the same as a genuine transaction. This article explains the legal timeline up to 2028, including the BMF letter of 15 October 2026, and sets out an architecture in which validation, segregation of duties, human approval and a reproducible audit trail are built in from the first design step rather than added after go-live.
At a glance
- All German businesses must be able to receive structured e-invoices since 1 January 2025; issuing becomes mandatory in stages through 2027 and 2028.
- A valid XRechnung or ZUGFeRD file proves format, not delivery, price or the payee's identity: technical and business validation must be separate.
- AI agents may suggest and, within limits, decide; master-data changes, tax overrides and payment release need independent human authorisation.
- Logs of model versions, proposals, overrides and postings form part of the GoBD process documentation and the audit evidence.
What counts as an e-invoice in Germany
Since 1 January 2025, the word invoice has had a narrower meaning in domestic German B2B trade. Under the amended Section 14 of the VAT Act (UStG), an E-Rechnung is an invoice issued, transmitted and received in a structured electronic format that allows automated processing and complies with the European standard EN 16931 (or another format agreed between the parties, provided the required data can be extracted correctly). A PDF sent by e-mail is no longer an e-invoice in this legal sense. It is a sonstige Rechnung, an "other invoice", which is only acceptable within the transitional rules.
In practice, two formats dominate. XRechnung is a pure XML data set, originally designed for public procurement. ZUGFeRD (from version 2.0.1, in a profile that meets EN 16931) is a hybrid: a human-readable PDF/A-3 with an embedded XML file. In a hybrid invoice the XML is the legally relevant part, so the design needs a control for differences between picture and data.
Source: BMF FAQ on e-invoicing; BMF letters of 15 October 2024 and 15 October 2025.
The transition path 2025 to 2028, and the October 2026 letter
The receiving obligation has applied to every domestic business since 1 January 2025, including small businesses. For issuing, the law grants a staged transition:
- 2025 and 2026: paper invoices and other electronic formats may still be issued; a non-EN 16931 electronic invoice requires the recipient's consent.
- 2027: other invoices remain permissible only for issuers whose total turnover in the previous year did not exceed EUR 800,000. EDI invoices remain possible with consent until the end of 2027.
- From 1 January 2028: domestic B2B supplies must be invoiced with a structured e-invoice, subject to the statutory exceptions (for example small-amount invoices up to EUR 250 and travel tickets).
The Federal Ministry of Finance (BMF) has interpreted these rules in three letters, each dated 15 October: 2024 (introduction and admissible formats), 2025 (changes to the VAT Application Decree, including the distinction between format errors, business-rule errors and content errors) and, most recently, 15 October 2026. According to published summaries, the 2026 letter covers advance and final invoices, mandatory details in the structured part, construction and gross-price invoices, and corrections: a correction of an e-invoice must itself be an e-invoice. It also states that no state validation tool will be provided. E-invoices issued up to 31 December 2026 that meet only the earlier letters will not be challenged, including for input VAT deduction.
For archiving, the second amendment of the GoBD (BMF letter of 14 July 2025) clarifies that retaining the structured part of an e-invoice is generally sufficient; the image part of a hybrid invoice must be kept only where it contains additional or deviating tax-relevant information. The XML must not be destroyed by converting it, for example into an image format.
The 2026 letter was published a few days before this article. Its details were checked against professional summaries, not against an official consolidated decree text. Check the full letter before relying on a specific transitional rule.
Structured data is not economic truth
A technical validator can confirm the schema, data types, mandatory fields and many EN 16931 business rules. It cannot tell you whether the goods arrived, whether the service was accepted, whether the price matches the contract, or whether the bank account really belongs to the supplier. A well-formed XML file for a fictitious delivery is still a fictitious delivery.
A sound design therefore separates technical validation from business validation. The second layer checks supplier identity and VAT ID, purchase order, goods receipt or service confirmation, quantities, prices, tax rates, currency and payment terms. Non-PO invoices need their own approval route, and credit notes, mixed tax rates, partial deliveries and reverse charge belong in the test set. One rule is non-negotiable: the system must never silently alter source data to make an invoice pass. Corrections go back to the issuer or through an authorised workflow, and the original file is retained alongside the result.
What an AI agent should and should not do in accounts payable
Because an e-invoice arrives already structured, an AI agent can work above the level of OCR: matching the vendor, proposing a general ledger account (Sachkonto), cost centre and tax code, locating the purchase order, routing exceptions and flagging duplicates or a changed IBAN.
A control-first architecture distinguishes three tiers of authority:
- Suggest: an account proposal with a confidence score and a short explanation, shown to a reviewer.
- Decide within limits: straight-through processing of a low-value invoice with a full three-way match, if policy explicitly allows it.
- Irreversible actions: creating or changing vendor master data, changing bank details, overriding a tax warning or releasing a payment. These stay behind independent human authorisation.
The agent should run under its own service identity, never on shared credentials, with least-privilege access, amount ceilings, a defined transaction scope and a kill switch that operations staff can actually use.
Human oversight must be a real decision point
An "Approve" button does not make a process human-in-the-loop. The reviewer needs the data, the reason for the proposal and the time and authority to say no. Floods of near-identical alerts create automation bias and approval fatigue; thresholds should reflect amount, tax treatment, vendor history and match quality.
Decision rights must be explicit: who may change a tax code, who may accept an exception, who may lift a payment block. The person approving should not be the person who changed sensitive master data. Human overrides are logged with a reason code, and their patterns are analysed to improve rules. The goal is not fewer clicks; it is fewer wrong decisions in a safe processing time.
Audit trail: what must remain reproducible
For each invoice, the original file, integrity hash, receipt time, validation result, rule or model version, agent proposal, human decision and journal entry should be linked. When a prompt, mapping or threshold changes, it must be clear which version affected which invoice. These logs are not an IT artefact; they are part of the Verfahrensdokumentation (process documentation) that the GoBD expect and the evidence base for internal and external audit.
Model changes deserve the same discipline as changes to an accounting policy: request, impact assessment, testing on representative data, approval, deployment and a rollback plan. Testing should measure high-impact errors, not only average accuracy. Sending real invoices to an external AI service without checking the contract, processing location, secondary use and access controls can breach confidentiality and the GDPR.
Fraud and bank-detail changes
E-invoicing does not eliminate fraud; it may make a fraudulent invoice look more trustworthy. An attacker can compromise a supplier's mailbox, alter vendor master data or generate a perfectly valid XML file. An IBAN on an invoice must never update master data automatically. Bank-detail changes are verified through an independent channel with a previously confirmed contact, and the roles of changing, creating and paying are segregated.
Duplicate detection should look beyond the invoice number, combining vendor, amount, date, purchase order, IBAN and text similarity. Every alert needs an owner and a documented outcome, and payment speed must never override the call-back control.
The EU AI Act and agent risk management
The EU AI Act (Regulation (EU) 2024/1689) entered into force on 1 August 2024, with obligations applying in stages. Whether an AP agent falls into a regulated category depends on its purpose and use; a typical invoice-processing tool is not a high-risk system under Annex III. The timetable has also moved: the AI omnibus amendment published in July 2026 deferred the Annex III high-risk obligations to 2 December 2027. Even so, the Act's principles of documentation, transparency and human oversight are a useful benchmark. Keep an inventory of AI systems and have counsel confirm whether you act as provider or deployer.
Useful KPIs go beyond the straight-through rate: posting corrections, tax-code errors, exception lead time and prevented losses. Changes to the chart of accounts or tax rules require revalidation.
Practical example: a six-layer AP design
Worked example · mid-sized German manufacturer, about 40,000 supplier invoices a year
- Intake: invoices arrive via a dedicated mailbox and Peppol; each file is time-stamped, hashed and stored unchanged.
- Technical validation: XRechnung and ZUGFeRD files are checked against EN 16931 rules; for hybrids only the XML is processed, and a PDF/XML mismatch triggers a review.
- Enrichment: the agent matches vendor, PO and goods receipt and proposes account, cost centre and tax code with a confidence score.
- Decision engine: deterministic rules first (e.g. reverse charge, 7 % vs 19 % VAT), then AI suggestions. Full match, invoice under EUR 2,000 and known vendor: automatic posting. Everything else: human queue.
- Approval and exceptions: new vendors, IBAN changes and non-PO invoices go to a specialist; overrides need a reason code.
- Posting and payment: a separate role releases payment runs; the agent has no payment permission.
Monthly, the team reconciles counts of invoices received, validated, posted, rejected and paid. The EUR 2,000 threshold is illustrative; set it from your own risk assessment.
Limits and scope
This article is an independent professional analysis, not tax or legal advice. It covers domestic B2B invoicing in Germany; cross-border supplies, B2G invoicing under the E-Rechnungsverordnung and the planned EU reporting under ViDA follow other rules. Transitional deadlines, exceptions and the October 2026 BMF letter must be checked against the current official texts and your specific transactions. The AI Act section reflects the timetable after the 2026 omnibus amendment as reported at the time of writing; classification of a specific system requires legal review.
Conclusion
E-invoicing gives German accounting a valuable data foundation, but a valid XML file does not prove that a transaction is real or correctly taxed. AI agents can accelerate matching, account assignment and routing, provided that limited authority, genuine human oversight, a reproducible audit trail and segregation of duties are designed in from the start. The greatest risk arises when speed becomes the main KPI and master data, tax and payment are handed to a single automated path.
Key terms in this article
| Deutsch | English | فارسی |
|---|---|---|
| E-Rechnung | Structured electronic invoice | صورتحساب الکترونیکی ساختاریافته |
| sonstige Rechnung | Other invoice (paper or unstructured PDF) | سایر صورتحسابها (کاغذی یا PDF غیرساختاریافته) |
| strukturierte Daten | Structured data | داده ساختاریافته |
| KI-Agent | AI agent | عامل هوش مصنوعی |
| menschliche Aufsicht | Human oversight | نظارت انسانی |
| Prüfpfad | Audit trail | ردپای قابل رسیدگی |
| Funktionstrennung | Segregation of duties | تفکیک وظایف |
| Verfahrensdokumentation | Process documentation | مستندسازی فرایند |
| Lieferantenstammdaten | Vendor master data | اطلاعات پایه فروشندگان |
| Vorsteuerabzug | Input VAT deduction | کسر مالیات بر ارزش افزوده ورودی |
| Rechnungsberichtigung | Invoice correction | اصلاح صورتحساب |
| Sachkonto | General ledger account | حساب دفتر کل |
The terms were selected for direct relevance to the topic and for use in reports, meetings and professional documentation.
Sources
This article is an independent professional analysis based on the primary sources listed and does not reproduce their text.
- Bundesministerium der Finanzen — FAQ: Einführung der obligatorischen E-Rechnung
- Bundesministerium der Finanzen — BMF-Schreiben: Einführung der obligatorischen E-Rechnung (Anpassung UStAE) · 15 October 2025
- PwC Deutschland — BMF: Ergänzende Regelungen zur elektronischen Rechnung (summary of the BMF letter of 15 October 2026) · 16 October 2026
- KPMG Deutschland — BMF: Zweite Änderung der GoBD (BMF letter of 14 July 2025) · 15 July 2025
- EUR-Lex — Regulation (EU) 2024/1689 (Artificial Intelligence Act)
- Mondaq — EU Digital Omnibus on AI Enters into Force (Regulation (EU) 2026/1744)
Sources checked on: 21 October 2026