Document processing

E-invoices: separate parsing, validation and approval

Reading time
14 minutes
Updated
Published
Written by
modernagents editorial teammodernagents is an AI automation agency from Austria for SMEs, based in the Vienna region.
AI-generated image: Magnifying glass with an indigo handle on an invoice on concrete

Monday morning in accounts: the inbox holds supplier invoices from wholesalers, some as XML files, some as PDFs with embedded data, some as scanned paper. If you handle e-invoices and paper invoices by hand today, typing in amounts and comparing them with the purchase order, you probably ask whether software or AI could take over the parsing and validation.

Official sources in this article

  • German Federal Ministry of Finance

It can, but in the right order. Automate electronic invoices first with a parser, a program that reads the data from the file, and with the correct validation rules. AI becomes useful where something is still open after that, meaning attachments without a fixed structure, invoices that cannot be matched clearly, and clarification work.

An example: an electrical contractor in Daugavpils, Latvia, with 35 employees has a subsidiary in Germany. The subsidiary receives dozens of invoices from German wholesalers every week for cables, switches and distribution boards. Today Ilze in accounts types in the amounts, compares them with the purchase order and asks the warehouse whether the goods have arrived. Afterwards the system should accept the original file, identify the format and extract the data. It runs the technical rules and the business checks, meaning whether quantity and price match the order. Ilze approves the invoice, and the system records who approved it. Only when the destination system, here the accounting software, confirms that it has accepted the invoice is the invoice done.

Key takeaways

  • First read the data that the e-invoice already contains and check it with the correct rules. AI helps with attachments without a fixed structure, ambiguous matching and clarification work.
  • An ordinary PDF does not automatically contain invoice data that software can read. Do not treat an XML file, a hybrid file and a scan the same way.
  • Whether the file is readable, whether it meets the format rules, whether amounts and order agree and whether someone has approved it are four checks that answer different questions.
  • An invoice counts as done only when the destination system, such as your accounting software, confirms that it has accepted it.

Ilze's invoice for 100 junction boxes: read, 20 boxes missing, approved and done only when the accounting software confirms it.

01 / 10

Why does an electronic invoice differ from an ordinary PDF?

Suppose Ilze receives three invoices one morning. The first is an XML file that software can read directly. The second is a hybrid file that contains the invoice data plus a view for people. A small supplier printed the third one and scanned it, and that image needs text recognition (OCR) first.

For your business, this means the first question is what data the file actually contains. If the system treats all three invoices the same way and also runs the XML file through recognition like an image, it throws away the more reliable data and adds avoidable reading errors.

An ordinary PDF does not automatically contain structured invoice data, meaning data that software can read field by field. In its electronic invoice FAQ, Germany's Finance Ministry (BMF) distinguishes electronic invoices in an appropriate structured format from other invoices, including simple PDFs. Rules for invoices between businesses within Germany have applied since 2025, with transitions and exceptions. The source was checked on 26 September 2026.

The German subsidiary buys mainly from wholesalers in Germany. For this subsidiary, these rules are therefore relevant. Every business, including yours, still has to assess which requirement applies in its own case.

Some suppliers still send only a simple PDF. Then the wish often comes up to "convert the PDF into an e-invoice". That is a different task from reading an electronic invoice you have received. Conversion requires all necessary information to be taken accurately from the PDF and placed into an appropriate format. A file that looks good does not prove that the invoice is technically and commercially correct.

You can start this week with an inventory of your invoices. Lay out last month's supplier invoices and note for each one whether it came as an XML file, a hybrid file or a scan. This shows you how much your business can read directly and where text recognition is still needed.

02 / 10

Do German e-invoice requirements apply in Austria and Switzerland?

As soon as a business also has customers or suppliers in Austria or Switzerland, this question comes up. The three countries describe electronic invoices differently in the sources cited here.

Austria describes structured electronic submission for invoices to the federal government, according to the Austrian business portal on electronic invoices. This process for invoices to the public sector (B2G) is something other than the normal invoice intake in your business.

The Swiss Federal Finance Administration describes both structured datasets through service providers and PDF submission through designated channels for federal invoices, according to its electronic invoice guidance. These differences already show that a generic "DACH e-invoicing obligation" is not a useful brief for your IT team.

Country Scope of the cited source What it describes
Germany Domestic B2B transactions The Finance Ministry distinguishes electronic invoices in an appropriate structured format from other invoices, including simple PDFs; rules have applied since 2025 with transitions and exceptions
Austria Invoices to the federal government (B2G) Structured electronic submission
Switzerland Federal invoices Both structured datasets through service providers and PDF submission through designated channels

So store the country, the recipient type, the agreed delivery channel and the expected format with every invoice. Have the responsible specialist determine which rules apply in your business. The technology can use the same components for all countries. The legal requirements and the requirements of individual recipients stay separate.

A business that works across borders may receive invoices under several arrangements at the same time. Have the system route them by this explicitly stored information, not by the language of the invoice. A German-language invoice can belong to any of the three markets.

03 / 10

Which four checks does an e-invoice pass through?

Ilze opens an invoice, and the system shows "invalid". Is the file broken, is a required detail missing, or did the wholesaler charge for more than arrived? Each of these questions has its own check:

Check What it establishes What it does not establish
Readability The format can be processed The invoice represents a legitimate charge
Schema and format rules Structure meets the selected rules Goods or services were delivered
Business plausibility Amounts, references and context agree Every tax issue is resolved
Approval An authorised person confirmed the case Payment has already been executed

Keep these outcomes separate. If the file has a technical fault, Ilze needs an understandable reason and the exact location in the file. And if the quantity does not match the order, purchasing or accounting needs a task. Calling every problem an "invalid invoice" makes it hard to correct the fault.

The validation rules should be fixed and give the same result every time they run. A language model, the technology behind programs like ChatGPT, can explain an error message to Ilze in plain words. But it should not independently override a rule that failed, and it should not fill in missing required information as if it appeared in the original invoice.

Some checks report a warning rather than an error. Decide in advance which warnings stop the invoice and which someone may review under an agreed exception procedure. This choice belongs in a controlled policy, not in an improvised AI answer. If you need to reconstruct later why an invoice went through, record the policy version together with the decision.

04 / 10

Which details does your accounting software need from the invoice?

From each invoice, the system takes the invoice number, issuer, recipient, date, currency, totals and the line items you need into a fixed internal format. For each value it keeps a note of where it came from. But the name "Elektrogroßhandel Franken GmbH" printed on the invoice is not yet the supplier number in your accounts. The system has to resolve such destination references separately before passing the invoice on, here in the accounting software.

Distinguish three kinds of values. The system read the invoice amount directly from the file, it calculated the early-payment discount under an approved rule, and Ilze confirmed the cost centre "school building site" by hand. If a cost centre turns out to be wrong later, you can see whether the cause was in the invoice, in the master-data matching or in a human decision.

Also keep the link between line items and totals. A correct overall amount can hide line items that were mapped wrongly. If the cables for the school end up on the cost centre of another building site, the total is still correct. And if your accounting needs the cost centre for each line, taking only the header totals is not enough.

05 / 10

Example: valid file, unresolved delivery

In this example, the German subsidiary orders 100 junction boxes at EUR 10 each. The wholesaler's structured invoice arrives, and the system can read it. The invoice shows EUR 1,000 for this line, before other components.

So far, a colleague in the warehouse has recorded only 80 boxes as received. The system reads the line directly from the file without text recognition, and the technical validation finds no format error that stops the invoice. Only the match against the purchase order and the goods receipt shows that 20 boxes are missing. The system creates a task for purchasing and keeps the invoice open for business review.

Purchasing checks whether another delivery has arrived but has not been recorded yet, whether the invoice came early or whether the wholesaler has to correct it. That decision is linked to the invoice, and only then does Ilze approve it. The XML validation has done its job without pretending to know anything about the actual delivery.

Ilze tests two more things with the same invoice. In the second test she deliberately changes a total in the file. Now the rule validation should report a different reason than for the quantity problem. This distinction between a format or arithmetic error and a real business discrepancy belongs in acceptance testing, the test before launch.

In the third test she submits the original invoice again. The system should link it to the existing invoice rather than create a new payable item. Together the three tests cover reading, the business checks and repeated delivery.

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

06 / 10

Where can AI usefully contribute to e-invoice processing?

After reading and checking, AI can add value in some places. It can summarise an accompanying message, suggest a responsible person, draft a clarification request to the supplier or help classify attachments. Give it only the data that this one task needs.

For example, the email with the junction box invoice says: "The second partial delivery will follow next week." The AI can show Ilze this sentence as a hint, with a reference to the email. But it should not turn it into a confirmed goods receipt on its own. A sentence in an email is a different kind of evidence than an approved goods receipt record.

Also avoid unnecessary AI re-extraction of what is already in the file. If an amount exists as a data field in the invoice, an additional AI reading of the invoice image should not silently replace it. Should the two values disagree, the invoice goes to Ilze for review. That keeps it clear where each value came from, and you avoid unnecessary AI costs.

When the AI explains an error message, the explanation should stay tied to the actual validation result. It can describe that a reference such as the order number is missing. But it should not invent a likely reference, and it should not assure Ilze that a warning is harmless without an approved rule.

07 / 10

How are failures, validation output and acceptance handled?

When is an invoice really done?

At Ilze's business every invoice has one of five states: received, technically checked, business review open, approved and transferred. It is done only when the destination system, here the accounting software, confirms that it has accepted the invoice. Suppose the system sends an invoice and gets no response. Then it is unclear whether the invoice arrived, and if the system simply creates it again, a duplicate can result.

Some inputs the system cannot read at all, for example an unknown format, a damaged file or an encrypted attachment. These invoices need their own list that someone sees. Decide who then contacts the sender and how the corrected invoice is connected to the original case. The new file should not silently inherit an approval that was already given.

Also distinguish whether a transfer failed only briefly or whether the invoice is rejected on business grounds. Waiting and sending again can help if the connection was briefly down, but they will not fix an invalid supplier reference. Whoever works through the error list needs a reason they can act on and a safe next step.

Turn validation output into actionable work

A technical rule identifier made of letters and numbers does not help Ilze. Give each such identifier an understandable description in the work list, and keep the original message next to it so that your IT provider can reproduce the error. Ilze mainly needs the affected field, the source of the value and the next step she is allowed to take. An explanation may make the rule easier to understand, but it should not independently change its severity.

Not every open case goes to the same person. If, for example, a recipient reference is missing, Ilze clarifies with the sender or the responsible team how the invoice should be assigned. And if the wholesaler sends a format version that the system does not support, your IT provider checks the parser and validation settings. Both cases are open, but different people handle them. This assignment speeds up handling without pre-empting a business decision.

Include the complete failure outcome in your test cases. After an update, a case that used to stop the invoice must not silently become a warning that nobody sees any more. So compare the types of errors and the states the invoices end up in, as well as the extracted values. A new technical version can change the behaviour while the interface looks the same.

Also agree how you notify suppliers. State exactly which detail is missing or conflicting, for example "Your invoice is missing our order number". Do not claim that the whole invoice is legally ineffective when the system has only found a technical processing error. The request should let the supplier correct the invoice and accurately describe what you actually checked.

Assemble an acceptance set before launch

Before launch, collect at least normal and deliberately faulty sample invoices for each format you accept. Add an invoice to the wrong recipient, a missing reference such as the order number, a credit note and the same invoice sent twice. Also include a view that does not match the data, a partial delivery and an interrupted transfer. Choose the cases from your business, and a single sample XML is not enough.

For each test case, Ilze sets the state the invoice should end in and who handles it next. Your IT provider shows which version of the validation rules was used and what the accounting software actually accepted. During the pilot, you then count. The invoices received must equal the completed cases plus the cases deliberately left open or excluded. Remember that one invoice can come with several files.

This way your workflow uses the data that e-invoices already contain, and difficult decisions stay visible. For the next step you mainly need sample invoices, your recipients' requirements, details of your accounting software and the people who own the business rules. With these, you can buy and test parsing, validation and supplementary AI as clearly separate parts.

08 / 10

For your IT team

A parser should recognise more than "XML". It must identify which format and profile the file follows and which rules to apply. KoSIT publishes configurations for XRechnung validation, available in the KoSIT validation configuration.

FeRD publishes ZUGFeRD specifications and validation artefacts. On the research date, the FeRD publications also listed version 2.5.2 dated 4 August 2026.

This does not mean that every existing invoice must immediately be reassessed with the newest rules whenever something new is published. Define which incoming profiles you support, which validation version belongs to which input and what happens with unknown versions. Record the artefacts used in the validation log.

For a hybrid file, keep the complete received file and process its data part deliberately. The visible view helps people read it. If the view and the data disagree, that is a review case of its own. The disagreement should not disappear because the system simply takes whichever value is more convenient.

Test the selected renderer as well as the parser. When Ilze reviews an invoice, she must see the same data that the system passes on. If the review screen leaves out important fields, an apparently successful approval may rest on incomplete information.

Specify rounding and data types. Money amounts must not change their meaning through casual conversion to text. Carry the currency explicitly. Your tests should include several tax rates, discounts, surcharges and credit notes where these occur in your process. The responsible accounting team sets the business calculation rules.

A validation log should connect the internal number, the original reference, the format version, the rule version, errors, approval and the number in the destination system. Do not copy complete invoice contents into technical logs without need. Controlled references to the designated document store keep the case traceable.

09 / 10

Take the worksheet

Worksheet

Download the editable CSV table

StageQuestionNot established by this check
IntakeWhich format arrived?Commercial correctness
ValidationDoes it match the selected profile?Service was delivered
RenderingDo displayed and structured values agree?Supplier trustworthiness
Business reviewDoes it match order and receipt?Payment authorisation
ExportCorrect destination association?Every subsequent obligation

Columns to fill in, in the file: Your value / observation, Owner, Next action.

Download the editable CSV table (CSV). Add your own values, owners and open actions. This worksheet contains no measured client results.

10 / 10

These guides and service pages cover the decisions next to e-invoice processing:

For a workflow review, start with a short description of how invoices move through your business today, the systems involved and typical exceptions. Discuss it with modernagents.

ShareEmail

Related reading

AI document processing

Got a workflow like this?

Tell me about it. Honest take and a rough price, usually within a day.

Robert Van Ysendyck · Founder & Managing Director