Reading invoices automatically means transferring the information you need into defined fields, in a way that lets you find the place in the original for every value. That is only one step. After it, a person or a program checks whether the numbers add up, matches the right supplier from your master data, looks for duplicate invoices, approves and hands over to accounting. For your invoice intake, it therefore matters more than whether text recognition (OCR) reads an amount. What matters is whether the whole invoice can then be processed correctly and arrives in accounting with a confirmation.
An example: a heating and plumbing firm in Cork with 30 employees installs heating systems and bathrooms. Every month, a few hundred supplier invoices come in, from the wholesaler, from the builders' merchant and from subcontractors. Today, Aoife from accounts types in the invoice number, amounts and supplier and looks up the order for each invoice. In future, a program should read the invoices, and Aoife should only check what is unclear.
Key takeaways
- First check whether an invoice already arrives as structured data. With an appropriate electronic invoice, a program can take over the values directly.
- The supplier name that was read is initially just text. Which supplier in your accounting it means is something you decide in a separate step.
- Confidence scores can help send difficult fields to review. They do not replace fixed rules.
- An invoice is handed over only when the accounting program confirms that it has processed it as intended.
01 / 12
Which input structure does the invoice have?
Aoife receives invoices in three forms. The wholesaler sends an electronic invoice, meaning a file in which the invoice data is already ordered and machine-readable. With an appropriate electronic invoice, a program that reads this data can take over the values directly, without any text recognition. The builders' merchant sends an ordinary PDF with text you can select and copy. And a subcontractor sends a phone photo of his paper invoice. Such a PDF with text needs a different route from a photo or a scan. Germany's Finance Ministry explains how a simple PDF differs from a structured electronic invoice in its FAQ on electronic invoices (checked on 26 September 2026).
Keep every original file unchanged, and give each invoice a fixed identifier under which it travels until it is booked. Sometimes one file contains more than one invoice. The builders' merchant, for example, sends one PDF with several invoices at the end of the month, and then someone has to check that the program split them correctly. Conversely, if an invoice spans several pages, all its lines and totals belong together and must not be spread across different invoices. Only once this assignment is right is it worth evaluating the individual fields.
A filter that only looks at the file type is not an adequate check at intake. Damaged PDFs, protected files, blank pages and incomplete photos need a visible failure state so that Aoife notices them. Invoices lost along the way must not simply disappear later from the statistics you use to measure how well recognition works.
02 / 12
Which invoice fields does the downstream task need?
Read only the fields you really need afterwards. A recognition model can return a lot of information, but not every item has to be copied into another program. Microsoft documents structured header and line-item output for its Invoice model, for example, meaning the details at the top of the invoice and the individual lines.
For Aoife's invoices, it could look like this. The fields are grouped into six groups, each with a rule for when the program is unsure:
| Field group | Examples | Rule when unsure |
|---|---|---|
| Identity | Invoice number, supplier, recipient | Review the assignment, do not fill in |
| Time | Invoice date, service period, due date | Keep the meanings of the dates apart |
| Money | Net, tax, gross, currency | Check totals and currency together |
| Lines | Item, quantity, unit, price | Flag missing or repeated rows |
| References | Order, project, contract | Match against approved references |
| Evidence | Page and source location | Enable correction against the original |
For every field, decide its format, whether it is required and who in the business is responsible for it. A missing purchase-order number can be normal for one supplier and a reason to hold the invoice for another. At the heating and plumbing firm, for example, the wholesaler puts it on every invoice, while the electrician who helps out as a subcontractor only rarely does. Such differences belong in rules that Aoife can understand and change.
03 / 12
Why separate extraction from master-data matching?
An invoice says "Heating Wholesale Ltd", and the program reads the name correctly, but that does not yet decide which supplier in accounting is meant. Aoife has two companies with nearly the same name that belong to the same group. Selecting the supplier account in accounting is an additional step. Use verified references for it, such as your master data, and show when a name fits more than one supplier. A similar name alone must not automatically select the wrong company.
The same applies to accounts, cost centres and projects. The AI can suggest that an invoice belongs to the job "Murphy family bathroom". But valid values come from the destination system, for Aoife the accounting program, or from an approved mapping list. New bank details should not go into the master data just because the program read them convincingly, for example when an invoice from the builders' merchant suddenly shows a new account number. Every change to bank details needs a separate control in the business.
Also keep a record of what the program read from the invoice, how it converted the value and what Aoife confirmed. Then you can explain later whether a mistake arose when reading, when converting or when assigning. How your IT team stores this is in the section for your IT team below.
Also decide what happens to corrections. If Aoife corrects a single invoice, for example the cost centre, that does not necessarily authorise a permanent rule for every future document from this supplier. Separate a one-off correction from an approved change to the mapping.
04 / 12
Which invoice checks run before approval?
Before Aoife approves an invoice, check the required fields, the permitted formats and whether the invoice adds up. Check for duplicate invoices within the right company and for the right supplier. Where relevant, compare the invoice with the order and the confirmed goods receipt. A correctly read total does not prove that the delivery was justified.
How should confidence scores affect review?
Confidence scores, meaning numbers for how sure the model is about a field, can help send difficult fields to Aoife for review. But they do not replace fixed rules, because a model can give a high score even for an assignment that is wrong for the business. Set the thresholds using your own test invoices and the consequences a mistake would have.
Which exceptions need a business decision?
A business problem must be distinguishable from a technical failure. With "supplier unknown", Aoife has to decide which supplier is meant, while with "accounting program unreachable", someone has to deal with keeping the technology running. These different causes should not end up in the same loop that endlessly tries again.
05 / 12
An invoice with two tax rates
In this example, the heating and plumbing firm receives an invented invoice with several lines, two tax rates and a separate discount. The recognition model reads the total correctly but assigns one line to the wrong tax group, meaning the wrong tax rate. Anyone who checks only the gross amount misses this mistake.
The plan is that the program takes over the lines together with their place in the original and checks the totals under the rules accounting has set. The discrepancy lands in the review view. There Aoife sees the original, the recognised value and the affected total group, meaning the total for the affected tax rate. After her correction, the check runs again, and the approved version is recorded.
Exactly this version goes to accounting. If the supplier later sends a corrected invoice, it is linked to the existing invoice and assessed again. Aoife's approval of the earlier version does not silently apply to the changed content. This example is a test task to rebuild yourself and not proof of an executed integration.
Add a second test in which the model leaves out a line, but the total at the top of the invoice still looks plausible. If you need the individual lines, this invoice must get stuck at the completeness check. This way you tell a result that only looks good from one you can really work with.
06 / 12
How do you see that the invoice reached accounting?
Suppose the program sends an invoice to the accounting program, and then the connection breaks before the confirmation comes back. First find out whether the invoice has already been created there. If the program simply sends it again blindly, a connection problem can turn into a duplicate invoice.
In the accounting program, check the link to the document as well as the values. Whoever works on the entry later must be able to get from the record to the original. Without an accessible original, a fully filled-in record creates extra searching and makes corrections harder.
If a handover gets stuck, it needs a responsible person, and you record how long it has been open. An invoice that was read correctly but waits indefinitely for import is still unfinished work. Your reporting should make this difference visible.
Got a workflow like this?
Tell me about it. Honest take and a rough price, usually within a day.
07 / 12
A supplier invoice on its way to review
Take as an example an invoice with supplier reference EXAMPLE-SUPPLIER-7, invoice number INV-104, currency EUR and a gross total of €240. These are invented test values, not accounting or tax advice. The original file and each extracted value remain linked to the identifier TEST-104.
Each station produces a record, and at each station there is a condition under which the invoice stops and does not move on automatically:
| Station | Record produced | The invoice stops here |
|---|---|---|
| Intake | Original file, received time and invoice identifier | File cannot be read or contains multiple unseparated documents |
| Reading | Proposed fields with the places in the original that support them | Invoice number, currency or amount is missing |
| Checking | Supplier match, arithmetic checks and duplicate result | Ambiguous supplier, unexplained total or possible duplicate |
| Review by a person | Approved fields and the name of the person who reviewed them | The reviewer rejects a value or asks for clarification |
| Handover to accounting | Identifier in the accounting program and returned state | Write to the accounting program failed, confirmation missing or returned fields differ |
| Reconciliation | The invoice is linked to the record in accounting | The same approved invoice appears more than once |
If the supplier emails the same invoice again, it should point to the existing invoice. And if Aoife changes the supplier during review, her earlier approval becomes invalid instead of being silently reused. If the accounting program may already have accepted the invoice, look for the existing record first before creating it again. The end result should be exactly one correctly assigned record. A run marked green in the automation program is not enough on its own.
08 / 12
Xero and QuickBooks invoice processing need different mappings
If you use Xero or QuickBooks Online, the automation program n8n is one possible connection, for example. According to the n8n documentation, there are invoice and contact operations for Xero.
For QuickBooks Online, n8n documents separate Bill, Vendor and Invoice resources, meaning supplier bills, suppliers and invoices. These sources, checked on 27 September 2026, show which functions the connector offers and do not prove a completed modernagents integration.
For incoming supplier invoices, you have to be sure the program creates the intended payable object and not, by accident, a sales invoice to a customer. Record the company or organisation, supplier identifier, currency, tax mapping and the required state. The proposed values stay in a review queue until the person responsible in accounting, Aoife in the example, authorises the write to the accounting program. Do not assume that a state called "draft" exists in both products and every edition, or that it behaves the same.
The first test should include a wrongly selected company, an unknown supplier, a duplicate invoice and a lost confirmation. A record being created does not authorise a payment or an email to customers. The integration directory sets out the documented routes and prerequisites. Before either route is presented as a working implementation, a test with a live account is required.
09 / 12
How do you build a test set from your own documents?
You can start building your own test set this week. Collect ordinary and difficult invoices from your own inbox in a test folder. For Aoife, these are, for example, invoices with changing layouts, poor phone photos from building sites, multipage invoices, credit notes, invoices in foreign currencies, invoices with missing references such as an order number, project or contract, and invoices a supplier sent a second time. Have the correct values defined independently of the program and its results before you compare. Then compare individual fields and the whole journey of an invoice to accounting separately.
Count incorrect, missing and invented information, and measure how much correction time remains. Also count the invoices the program could not process at all. A rate calculated only from successful responses makes recognition look better than it is in daily work.
Begin with one kind of invoice and one handover for which the accounting program confirms the intended processing. Expand only once your team understands the sources, the exceptions and who is responsible for what. Invoice recognition then becomes work you have under control, and you judge its quality against your own invoices rather than a general product promise.
10 / 12
For your IT team
Keep raw, normalised and confirmed destination values apart where the distinction matters for review. The raw value is the text the program read from the invoice, for example "1,240.00". The normalised value is the converted number. The confirmed destination value is the value accounting confirms and hands over.
For every handover, store the identifier in the destination system, the time and the state the destination returns. If the destination's response is lost, first check whether the record already exists, and do not repeat the write blindly.
11 / 12
Take the worksheet
Worksheet
Download the editable CSV table
| Field group | Check | Uncertain result |
|---|---|---|
| Supplier | Match approved master data | Review association |
| Invoice number | Preserve original and business key | Never invent a replacement |
| Amounts | Reconcile net, tax and gross | Show discrepancy |
| Lines | Match quantity, unit, price and discount | Flag affected line |
| Bank details | Treat changes separately | Require independent verification |
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.
12 / 12
Related decisions
These guides and service pages cover the decisions next to invoice processing automation:
- AI document processing: capture, review and transfer
- OCR, IDP or an LLM for document processing?
- Design an invoice approval workflow with clear ownership
- Detect duplicate invoices with business keys and review
- Automate invoice intake in Lexware Office and sevdesk
For a first review of your workflow, start with a short description of the task, the programs involved and typical exceptions. Discuss it with modernagents.



