Short answer: To automate three-way matching, use AI to read each supplier invoice into structured lines, then let plain rules compare those lines with the purchase order and the goods receipt in your ERP, within price and quantity tolerances you set. Invoices that match are queued for payment without anyone touching them. The rest go to a person with the reason for the mismatch, the three documents side by side and a suggested next step, so AP spends its time on exceptions instead of on lookups.
The problem
Three-way matching is simple on paper. Before you pay a supplier, you check that the invoice agrees with what you ordered (the purchase order) and with what actually arrived (the goods receipt or goods received note). The items and quantities should agree, and prices should sit within an agreed tolerance.
In practice it is where many AP teams lose their week. Suppliers bill part of an order, or bill one delivery across two invoices. The warehouse receives goods but posts the receipt days later. A price has gone up by a few pence and nobody updated the PO. Each of these turns a two-minute check into a hunt through the ERP, the shared inbox and the warehouse.
Users of accounting software describe the same knots. In an April 2025 QuickBooks Community thread, a business that had received and paid for a partial shipment found that, when the rest of the order arrived, the system offered both receipts against the second bill as if the first had never been paid. Rebuilding the data did not fix it, and recreating the records would have thrown their inventory out. In an earlier thread, another user simply wanted to record the items that had arrived and match the bill to those lines, and lost the whole entry by choosing the wrong option when removing a line. Neither is an unusual business. Partial deliveries and split invoices are normal in distribution and manufacturing.
What it costs
Ardent Partners' State of ePayables 2025 benchmarks, published in January 2026, put the average cost of processing an invoice at $9.84 and the average processing time at 8.2 days. The average invoice exception rate was 18.4%, and Ardent calls exceptions the biggest single reason those benchmarks are not lower. Its best-in-class group (the 20% of organisations with the lowest costs and shortest cycle times) processes invoices at 79% lower cost and has exception rates 47% lower than everyone else.
The other cost is control. Matching exists to stop you paying for goods that never arrived or prices nobody agreed. The ACFE's Occupational Fraud 2026 report, based on 2,402 cases, found billing schemes in 21% of cases with a median loss of $90,000, and they ran for a median of 14 months before detection. Billing schemes appeared in 28% of cases at organisations with fewer than 100 employees, against 18% at larger ones. When the matching step is rushed or waived because the team is behind, that protection quietly goes.
Why it keeps happening
The receipt is late or missing
Most failed matches are not AP mistakes. Microsoft's own Dynamics 365 three-way matching example describes a receiving clerk who is interrupted and does not post the product receipt straight away, so the invoice lines fail the quantity match even though the goods are sitting on the shelf. AP then has to chase the warehouse to confirm something that already happened.
Documents never line up one to one
One PO can produce three deliveries and two invoices. A single invoice can cover lines from several POs. Suppliers use their own item codes and descriptions, round unit prices differently and add freight or packaging charges that were never on the order. Software that expects one invoice per PO per receipt will flag almost all of this.
Tolerances are set once and forgotten
ERPs let you set tolerances for unit price and line totals. In Microsoft's examples, one company allows 8% on unit price and 15% on price totals, while another allows only 2% on unit price. If yours are too tight, every penny of rounding becomes an exception. If they are too loose, real overcharges pass. Most small teams set them during implementation and never look again.
Invoices still arrive as PDFs
Ardent's figures show 57% of suppliers can now send invoices electronically, which leaves a large share arriving as PDFs and scans by email. Someone still has to key the header and lines before any matching can start, and keying errors (a wrong PO number, a transposed quantity) create exceptions of their own.
How AI solves it
The workflow below is mostly ordinary automation. The AI part is narrower than vendors suggest: it reads messy documents and explains mismatches. The matching itself should stay with rules you can audit.
Step by step
- Capture: Invoices arrive in a dedicated AP inbox, a supplier portal or as EDI. A workflow tool such as n8n or Zapier, or a small custom service, collects them in one queue.
- Read the invoice: A document AI model extracts the supplier, invoice number, date, PO references, line items, quantities, unit prices, tax and totals. Google's Document AI invoice parser, for example, is listed at $0.10 per document of up to 10 pages. A general LLM can handle odd layouts and handwritten notes that a fixed template misses.
- Validate the basics with rules: Do the lines add up to the total? Is the tax arithmetic right? Is this invoice number already in the system for this supplier? These checks need no AI.
- Find the PO and receipts: Look up the PO by the number on the invoice. If it is missing or wrong, an LLM can suggest likely POs using the supplier, dates, amounts and item descriptions, and a person confirms the choice.
- Match the lines: This is where most of the effort goes. Rules match invoice lines to PO lines by item code. Where the supplier uses its own codes or descriptions, an LLM proposes the pairing ("Box 40x30 kraft, 25 pack" against your item "CARTON-4030"), and confirmed pairings are saved to a cross-reference table so the same question is never asked twice.
- Apply tolerances: Rules compare quantity invoiced with quantity received and not yet billed, and price with the PO price, using your tolerances. Partial receipts are handled by tracking what each receipt has already been matched against, so one receipt cannot support two invoices.
- Route the result: Clean matches go to your ERP as approved bills. Exceptions go to a queue with a plain-English reason, such as "Invoice bills 120 units, 100 received on 14 November, 20 still open on the PO", and a suggested action: ask the warehouse, request a credit note, or approve a small price variance.
- Chase the receipt: If the only problem is a missing receipt, the workflow can message the receiving team with the PO and line details and recheck automatically once the receipt is posted.
Where AI helps and where rules are better
| Task | Best tool | Why |
|---|---|---|
| Reading PDF and scanned invoices | Document AI or an LLM | Layouts vary by supplier |
| Totals, tax and duplicate checks | Rules | Arithmetic must be exact and auditable |
| Matching supplier descriptions to your item codes | LLM, then a saved lookup table | Fuzzy at first, fixed once confirmed |
| Quantity and price tolerance checks | Rules in your ERP or workflow | Must be consistent and explainable to auditors |
| Explaining an exception in plain English | LLM | Saves the reviewer reading three documents |
| Approving payment | A person, or rules for clean matches | Accountability stays with your team |
Keep a log of every automatic decision: which documents were matched, which rule passed and who approved any override. Your auditors will ask for it, and it makes tuning the tolerances much easier.
Costs and timeline
Every figure in this section is an estimate based on the assumptions shown. Swap in your own numbers.
Assumptions: a distributor processes 1,500 PO-backed invoices a month. A clean manual match takes 5 minutes. Exceptions run at Ardent's average of 18.4% (about 276 invoices) and take 20 minutes each to investigate. Staff cost $35 an hour fully loaded.
- Today: about 102 hours a month on clean invoices plus about 92 hours on exceptions, roughly 194 hours or $6,800 a month.
- With automation: clean invoices need a quick sample check (say 1 minute each, about 20 hours), and exceptions arrive already investigated (say 10 minutes each, about 46 hours). That is roughly 66 hours, a saving of about 128 hours or $4,500 a month.
- Extraction cost at Google's list price would be about $150 a month for 1,500 invoices of up to 10 pages each, plus modest LLM usage for line matching and explanations.
| Option | What it involves | Best for |
|---|---|---|
| Do nothing | Keep matching by hand, or waive receipts below a threshold | Low volumes, few suppliers, simple orders |
| Use your ERP's matching | Turn on and tune the matching policies and tolerances you already pay for | Teams whose invoices already arrive as clean data |
| Buy an AP automation product | Off-the-shelf capture, matching and approvals, usually priced per invoice or per user | Standard processes on a mainstream ERP |
| Custom or hybrid build | A workflow around your inbox and ERP, with AI for reading, line matching and exception notes | Many partial deliveries, supplier-specific codes, an older or customised ERP |
Timeline (estimate): a first version covering capture, extraction, PO lookup, line matching and an exception queue for your top 20 suppliers typically takes four to eight weeks. The variable is your data: if item masters are messy or receipts are posted late, fixing that is part of the project. Run the automation alongside your current process for a month and compare results before letting it post anything without review.
When not to use AI
- You process fewer than a couple of hundred PO invoices a month. A tidy manual process with sensible tolerances will cost less.
- Most of your suppliers already send EDI or structured e-invoices, and your ERP's built-in matching handles them. Tune what you have first.
- Your receiving process is the real problem. If goods are not booked in for days, no model can confirm they arrived. Fix the receiving routine, perhaps with a mobile scanning app at goods-in, before automating AP.
- Your purchases are mostly services with no goods receipt. Two-way matching plus an approver sign-off is usually the right control there.
- A mainstream AP automation product already supports your ERP and your invoice formats. Buying is faster, and a custom build only makes sense for the parts it cannot handle.
How to start
- [ ] Pull last quarter's PO-backed invoices and count them by supplier.
- [ ] List the exceptions from the same period and group them by cause: missing receipt, quantity, price, wrong PO, duplicate.
- [ ] Check your current tolerance settings and whether anyone has reviewed them since go-live.
- [ ] Measure how long receipts take to be posted after goods arrive.
- [ ] Pick 50 invoices from your top five suppliers as a test set, with the correct match recorded for each.
- [ ] Decide which exceptions a person must always see, whatever the amount.
If the biggest cause is late receipts, start there. If it is keying and line matching, an AI workflow is likely to pay for itself. Our AI workflow automation service builds this kind of matching flow around your existing ERP and inbox. Matching on the receivables side is covered in How to Automate Cash Application, and invoices with no goods receipt at all are covered in How to Automate Freight Invoice Audits.
FAQ
What is three-way matching in accounts payable?
It is a check that a supplier invoice agrees with the purchase order and the goods receipt before payment. Quantities billed should match quantities received, and prices should match the PO within an agreed tolerance. Two-way matching compares only the invoice and the PO.
Can three-way matching be fully automated?
Clean matches can be approved without anyone touching them. Exceptions such as short deliveries, price disputes and missing receipts still need a person. The goal is to give that person the evidence and a suggested action, so each exception takes minutes.
What tolerance should I set for invoice matching?
There is no standard figure. It depends on your margins, supplier rounding and how often prices change. Start by reviewing a quarter of exceptions to see which variances were always approved, set tolerances that cover those, and review the settings every few months.
How do you handle partial deliveries in three-way matching?
Match each invoice line against the quantity received that has not yet been billed, and keep the rest of the PO open. Track which receipt each invoice consumed so the same receipt cannot support two invoices. This is the area where manual processes and basic software most often go wrong.
Is AI accurate enough for invoice data extraction?
Modern document AI handles typed invoices well, but no extraction is perfect. That is why totals, tax and duplicate checks should be done by rules, and why low-confidence fields should go to review. Test on your own invoices before relying on it.
How much does AP automation cost for a small business?
Off-the-shelf products are usually priced per invoice or per user, so get quotes for your volume. A custom workflow has a one-off build cost plus running costs; model usage for document extraction can be cents per invoice. Compare either against the hours your team currently spends on matching and exceptions.
Sources
- Ardent Partners, "State of ePayables (Part Nine): AP Benchmarks and Best-in-Class Performance" (January 2026): https://payablesplace.ardentpartners.com/2026/01/state-of-epayables-part-nine-ap-benchmarks-and-best-in-class-performance/
- ACFE, Occupational Fraud 2026: A Report to the Nations: https://www.acfe.com/en-us/-/media/files/acfe/pdfs/rttn/2026/2026-report-to-the-nations.pdf
- Microsoft Learn, "Three-way matching policies" (Dynamics 365 Finance): https://learn.microsoft.com/en-us/dynamics365/finance/accounts-payable/three-way-matching-policies
- Google Cloud, Document AI pricing: https://cloud.google.com/document-ai/pricing
- QuickBooks Community, partial shipments and item receipts against bills (April 2025): https://quickbooks.intuit.com/community/other-questions-9/purchase-orders-item-receipts-vendor-bill-89694
- QuickBooks Community, entering only received items from a purchase order (October 2023): https://quickbooks.intuit.com/learn-support/en-us/reports-and-accounting/does-anyone-have-problems-with-entering-inventory-and-only-items/00/1333496
If you would like to talk through your own invoice matching and whether automating it is worth it, get in touch at https://sintraflow.com/contact.