How to Match Incoming Peppol Invoices to Purchase Orders — AI Automation article by Rui Codex

Incoming Peppol invoices are matched by comparing the supplier, line items, quantities and prices on the invoice with the matching purchase order and goods receipt. When all three agree within agreed tolerances, the invoice can be approved automatically. Anything that does not agree goes to an exception queue where a person resolves it.

Key takeaways

  • Three-way matching compares the invoice, the purchase order and the goods receipt before payment is released.
  • Matching only works when the purchase order number and supplier identifier are present and consistent in the invoice data.
  • Tolerances for price and quantity should be set per supplier and per item type, not as one company-wide value.
  • Automated matching fails most often on partial deliveries, unit-of-measure differences and credit notes.
  • Start with a small set of reliable suppliers and expand the matching rules once exceptions are understood.

What is three-way matching for Peppol invoices?

Three-way matching is a control that checks an incoming supplier invoice against two earlier records: the purchase order that authorised the spend and the goods receipt that confirms what actually arrived. The invoice is only released for payment when those three documents agree.

Peppol is a network for exchanging electronic business documents in a structured format. Its value for matching is that the invoice arrives as data rather than as a PDF that someone must retype. The network itself does not decide whether an invoice matches anything; that logic lives in your accounting, ERP or procurement system, which receives the structured invoice through an access point.

The network's own description of how documents are exchanged is published on the Peppol website, operated by OpenPeppol. Read it for transport and format background, but expect to design the matching rules yourself.

Tip: Treat the structured invoice as the input to matching, and keep the original document attached to the record for audit purposes.

Which data must be present before matching starts?

Matching needs a stable set of keys on both sides. If the invoice cannot be linked to a purchase order and the order cannot be linked to a receipt, no rule will produce a reliable result. Check these fields before building any logic.

  • A purchase order reference that your buyers actually write on the order and that the supplier copies onto the invoice.
  • A supplier identifier that maps cleanly to one supplier master record, including any alternative legal entities the supplier uses.
  • Line-level item codes or descriptions that can be mapped to the order lines, not only a total amount.
  • Units of measure on the invoice, order and receipt, expressed in the same units or with a known conversion.
  • Tax and currency fields, so that the amounts being compared are on the same basis.

Missing references are the first thing to fix. A supplier that issues one invoice per shipment but quotes a sales order reference instead of your purchase order number will fail every match until the mapping is corrected at the supplier master level.

How do you run the match step by step?

The match runs in a fixed order so that each check uses data already validated by the previous one. Running the checks in a different order usually produces confusing exception reasons.

  1. Validate the structured invoice against your expected format and reject or flag documents that cannot be parsed.
  2. Identify the supplier and confirm the supplier is active and approved for purchasing.
  3. Find the purchase order by reference. If no reference exists, stop and route the invoice to a person.
  4. Compare header totals, then compare each line to the order line for quantity, unit price and item.
  5. Find the goods receipt linked to the order and compare the received quantity with the invoiced quantity.
  6. Apply the tolerance rules. Lines inside tolerance pass; lines outside tolerance go to the exception queue with the reason attached.
  7. Post the invoice for approval only when every line passes, and record the matching result on the invoice.

The order matters most at step three. A lookup by supplier and amount alone is tempting, but it will match the wrong order whenever two orders share a value, so it should only be used as a suggestion for a reviewer.

Tip: Log the reason code for every failed match. After a month, the most common codes show you which supplier or process to fix first.

How should price and quantity tolerances be set?

Tolerances define how much difference between invoice and order or receipt is accepted without review. They should be set per supplier and per item category, because a bulk commodity and a custom part behave differently. Tight tolerances create work; loose tolerances hide overbilling.

SettingTight toleranceLoose tolerance
Unit priceFew exceptions, but normal price changes need manual approvalFewer reviews, but small repeated overcharges can pass unnoticed
QuantityPartial deliveries cause frequent holdsShort deliveries can be paid as if complete
Total amountRounding differences create noiseEasier to pass, harder to audit

A practical starting point is to set absolute tolerances for low-value lines and percentage tolerances for high-value lines, then review the exception log after several weeks. Adjust based on what your team actually rejects, not on what seems reasonable in a planning meeting.

Where does automated matching fail?

Automated matching fails in predictable places. Knowing them in advance lets you decide which cases to automate and which to leave with people.

Partial deliveries and split invoices

When a supplier ships an order in several parts and invoices each part, the invoice quantity matches a receipt that is only partly recorded. The fix is to compare against the cumulative received quantity minus what was already invoiced, not against the full order.

Unit-of-measure differences

An order may be placed in cases while the supplier invoices in single units. Without a conversion table, every line fails even though the goods and price are correct.

Credit notes and corrections

A credit note references an earlier invoice rather than an order. Rules written for ordinary invoices will misread it unless credit documents are handled in their own branch of the workflow.

Late or missing goods receipts

If warehouse staff record receipts after the invoice arrives, every invoice looks unmatched for a short period. Decide whether to hold, wait or approve on order alone for those cases, and document the rule.

Tip: Never let the matching engine approve an invoice for which no goods receipt exists for a stock item. Route it to a person instead.

Hypothetical examples

Here are two hypothetical scenarios:

Scenario one. A distributor receives an invoice whose purchase order reference is correct, but the invoice bills one pallet while the order and receipt show two pallets delivered in separate movements. The matching logic compares the invoice against the cumulative receipt, finds the lines agree, and passes it. The reviewer only needs to confirm the second delivery was recorded in the same period.

Scenario two. A manufacturer receives a structured invoice whose unit price is slightly higher than the order. The price difference falls outside the tolerance for that supplier, so the invoice goes to the exception queue with the reason code for price variance. The buyer checks the supplier's price change notice, approves the difference, and the supplier's tolerance setting is reviewed at the next quarterly check.

Where should a team start?

Start with a narrow scope: a few suppliers with clean references, a single company entity, and stock items only. Measure how many invoices pass without review, and inspect every exception for the first weeks. Only then widen the supplier list and add rules for credit notes and services that have no goods receipt.

The work usually touches more than one system. Integration between the accounting ledger, the procurement module and the Peppol access point is where most delays occur. Our Peppol e-invoicing integration service covers the receiving side, and our ERP and CRM integration work covers connecting the matching logic to your existing records. For a comparable project, see the published case studies.

Rui Codex is led by a founder with 200+ projects delivered, and Rui Codex is independent and is NOT an official Odoo partner. Rui Codex provides technical implementation support for integration and matching workflows; it does not provide accounting, audit or compliance advice.

Frequently Asked Questions

What is the difference between two-way and three-way matching?

Two-way matching compares the invoice with the purchase order only, while three-way matching also compares it with the goods receipt. Three-way matching is the stronger control for stock items because it confirms the goods arrived. Services usually use two-way matching against a service confirmation instead.

Can incoming Peppol invoices be matched without a purchase order number?

Yes, but the match is weaker and usually needs a person to confirm it. Without an order reference, the system can only suggest candidate orders based on supplier and amount. Those suggestions should be reviewed before approval.

How do tolerances affect the number of exceptions?

Tight tolerances increase the number of exceptions because small, legitimate differences trigger reviews. Loose tolerances reduce review work but can let overcharges pass. Setting tolerances per supplier and per item category usually gives a better balance than one global value.

What should happen to a credit note in the matching workflow?

A credit note should follow its own branch rather than the ordinary invoice rules. It should reference the original invoice and reduce the open liability or be netted against it. Standard order matching does not apply to it directly.

Does matching replace the need for a manual review?

No, matching reduces manual review to the invoices that fail the rules. Those exceptions still need a person to decide, and the reason codes help that person act quickly.

Sources

Tags: Peppol three-way matching purchase orders goods receipts API integration workflow automation accounts payable business process automation

Need Help Implementing This?

Our team can help you put these insights into practice. From AI automation to custom software development, we build solutions that deliver real results.

Send a project request