Document processing

Three-way matching: purchase order, delivery note and invoice

Reading time
9 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: Parcel scale with a metal platform and indigo base on concrete

Every morning, supplier invoices arrive by email, and someone in accounts puts each one next to the order and the delivery note, asks the warehouse and redoes the sums. This three-way matching takes time, and a wrong quantity or unexpected freight may only show up after the money has gone out.

You can automate this manual work. Software can read delivery note and invoice, find the purchase order and the goods receipt confirmed by the warehouse, and compare order, receipt and invoice line by line. AI can help with the reading, for example as automatic delivery note recognition that extracts the details and suggests which similar item names belong together. Whether quantity, price and service agree is still decided by rules you can trace, with approved tolerances and a clear path for each difference.

An example: an electrical installation firm in Dublin, Ireland, with 30 employees orders LED downlights from a wholesaler for a building site. The goods arrive with a delivery note, and the warehouse clerk counts and books them in. Days later, the invoice reaches Niamh in accounts by email, and today she matches it by hand.

Key takeaways

  • A delivery note can help when goods come in. But it does not by itself replace your internal confirmation that the goods arrived in that quantity.
  • You decide how much price difference you pay without asking. For quantities, do not simply use the same value.
  • Each difference goes with its own reason, such as quantity or freight, to the person who can resolve it. After a correction, the software checks again.

01 / 10

What does three-way matching actually check?

Each document on Niamh's desk answers a different question. The purchase order shows what the firm agreed with the wholesaler. The goods receipt shows what the warehouse confirmed as arrived, and the invoice shows what the wholesaler charges. Three-way matching, also written 3-way matching, compares these three.

In delivery note matching, the delivery note helps the clerk book goods in. Whether the downlights are actually on the shelf, in that quantity, is only confirmed once the clerk has counted. The delivery note does not replace that confirmation by itself, so the software should compare the invoice quantity with the confirmed goods receipt.

In Dublin, the firm also buys planning hours from an engineering office, and the warehouse books nothing in for those. For services, an approved confirmation that the work was done may be needed instead of a physical goods receipt, for example from the site manager. Define explicitly what counts as evidence here. You cannot sensibly compare an invoice for consulting hours with warehouse stock just because both run in the same software.

02 / 10

How does the software match purchase order and invoice line by line?

If the software only compares totals, one line can charge too much and another too little while the total still looks plausible. So it links each invoice line to its order line, through purchase order number, order line and, where available, an item reference such as the item number.

Niamh's order says "LED downlight warm white", the invoice says "Downlight 7W 3000K". AI can suggest that these are the same item. Still check unit, quantity and whether the suggestion is really right. Whether "10 boxes" on the invoice fits the pieces you ordered can only be said with a known, approved conversion. A similar name must also not lead the software to silently map a different item, such as the cool white downlight.

03 / 10

Example with a partial delivery and freight

The firm in Dublin orders 100 downlights, and the first delivery is incomplete.

Item Value
Ordered 100 pieces at EUR 12 each
Initially confirmed by the warehouse 60 pieces
Invoiced 80 pieces at EUR 12 each plus EUR 25 freight
Total of the downlight line EUR 960
Not yet confirmed by the warehouse 20 pieces
Freight Not included in the original order

The software finds the order line and sees that the unit price is right. Because of the quantity, it holds the invoice instead of approving it. It checks freight separately, because the original order did not include it. The purchasing colleague gets two clear questions instead of a generic error message:

Invoice 4471, line 1: 80 pieces charged, 60 booked in the warehouse. Have another 20 arrived?

Invoice 4471, freight EUR 25: not in the order. May the wholesaler charge it?

After asking the warehouse, the colleague learns that another 20 downlights arrived but were not booked in. Once the clerk books them, the quantity fits. The freight stays open until it is clear whether the wholesaler may charge it. Only when both questions are decided does the invoice reach the approval status you planned for it.

A single "accept everything anyway" button would hide that two different decisions were needed. That is why the software should keep each difference with its own reason. The example shows one possible process, and we did not compare specific software products for it.

04 / 10

How do you set price and quantity tolerances?

On the next order, the wholesaler charges EUR 12.08 instead of EUR 12 per downlight. Should Niamh call? The price tolerance answers that: it is the difference you pay without asking. Its size is a decision for your business and not a general recommendation from an AI model.

For quantities, do not simply use the same tolerance as for prices. Even one missing piece can matter for some goods. With other suppliers, slightly more or less may arrive by agreement. The rule must fit the delivery, and the responsible person in your business approves it.

Also define explicitly how the software handles freight and other charges, discounts and foreign-currency invoices. If it only checks the unit price, extra freight can slip through. Wording such as "small differences are fine" cannot be run as a check. The software needs a clear limit.

05 / 10

Who resolves which discrepancy?

If the software holds an invoice, the difference usually goes to one of these places:

Discrepancy Who usually resolves it
Price questions Purchasing
Missing receipt entries Goods receiving in the warehouse
Formal invoice questions Accounting

Each place needs a stand-in, for example when the purchasing colleague is on holiday. The message says where the figures come from, which values were compared, the difference and the decision needed.

After a correction, the software checks the invoice again. Later, you can still see what was wrong and how it was resolved. Anyone who decides an exception by hand, such as letting an invoice through despite a difference, needs a reason and the authority. Such an exception should not change the tolerance rule for all future invoices by itself. If management accepts the freight this time, that does not by itself apply to the next invoice.

Each open question shows how long it has been open and what needs to happen next. Otherwise the software finds every difference, but invoices stay stuck indefinitely. A difference is only done when someone has resolved it.

Got a workflow like this?

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

06 / 10

What happens with several deliveries and invoices?

An order can be fulfilled through several partial deliveries and invoices. Before passing another invoice, the software checks which delivered goods are already matched to an earlier one. If, for example, 60 received pieces are fully matched to an earlier invoice, the same 60 cannot repeatedly justify new invoices.

Returns and cancellations also change which goods stand against an invoice, for example when the firm returns two faulty downlights. If such a change affects something already checked, the software checks again. It records what changed and why, instead of just overwriting the quantity.

Some invoices cover several orders, and then each line needs its own link to an order. If your system cannot handle this the way you need, Niamh processes such invoices by hand in an explicitly agreed way. AI should not cover this gap with an invented combined reference.

Sometimes a genuine invoice arrives before the goods receipt is confirmed. So tell "unmatched" apart from "invalid". Keeping it visibly waiting can be right. If the software deletes or rejects it only because the goods receipt is missing, that can cause needless trouble with the supplier.

07 / 10

How do you test the order matching before go-live?

Before real invoices go through, test these cases:

  • a complete delivery
  • a partial delivery as in the example
  • an invoice that charges too much
  • a wrong unit, such as boxes instead of pieces
  • extra freight
  • several orders
  • the same invoice arriving twice
  • a goods receipt the warehouse corrects later

Each time, check whether the software calculates the difference correctly and which status the invoice actually gets, for example held or approved.

In the test, count how often the software warns without reason, how often it misses a real difference and how long resolving takes. The share of invoices without manual work can mislead, because broad tolerances let errors through too. With good three-way matching, Niamh can process matching invoices faster and see, for each difference, which decision is missing.

You can start this week. Pick ten supplier invoices from last month that led to a query. For each, note what did not fit, who resolved it and how long it took. These become your first test cases.

08 / 10

For your IT team

The Microsoft documentation on invoice matching in Dynamics 365 (accessed 26 September 2026) explains three-way matching through price differences between order and invoice and quantity differences between invoice and goods receipt. Which rules and tolerances apply depends on the solution and your configuration.

For each invoice line, matching compares five fields, each with its own evidence:

Field Evidence needed Common open question
Order line Unambiguous reference Does the line relate to multiple orders?
Quantity Invoice and confirmed receipt Partial delivery or missing receipt entry?
Unit Agreed and approved conversion Ten boxes or ten individual pieces?
Price Order including approved amendments Was a change authorised?
Additional charges Agreement or explicit approval Are freight and surcharges expected?

Define whether a price tolerance is absolute, percentage-based or both, and whether it applies to unit price, line value or invoice total. Depending on the basis, the same invoice can get a different result. For foreign currencies, define which amounts are directly comparable and which approved conversion is used.

Test the boundary values. If the rule allows a difference up to a set amount, examples just below, exactly at and above it should give the intended result.

09 / 10

Take the worksheet

Worksheet

Download the editable CSV table

Invented caseFindingNext action
100 ordered, received and invoicedQuantity agreesContinue price and business checks
100 ordered, 60 received, 100 invoicedInvoiced beyond receiptBusiness query
Deliveries of 40 and 60Total receipt 100Link both references
Ten cartons, unknown unit countUnclear conversionDo not assume equivalence
Related credit noteCorrection documentPreserve relationship

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

Download the editable CSV table (CSV). Add your own values, who resolves which difference and which actions are still open. This worksheet contains no measured client results.

10 / 10

These guides and service pages cover the decisions next to three-way matching:

For a review of your process, start with a short description, 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