3-Way Matching: Invoice Matching Process and Automation

Jun 23, 2026

Try it now: convert an invoice to Excel or CSV

Upload a PDF or scanned invoice and get the vendor, dates, totals, and every line item back in seconds. Your first invoice is free.

PDF, JPG, PNG, BMP, HEIC, TIFF

Upload your receipts and invoices

Last updated June 2026.

TL;DR: 3-way matching is an accounts payable control that compares three documents before a vendor invoice is paid: the purchase order (what you ordered), the goods receipt (what you received), and the invoice (what you are billed). When all three agree line by line, the invoice clears for payment; when they do not, it is flagged as an exception. Automating it depends on one thing first: capturing clean, structured line-item data off every invoice.

Three-way matching is the check that keeps accounts payable honest. It is also where a lot of AP teams lose hours every week, because the matching engine is only as good as the data feeding it. If your invoices arrive as PDFs or scans and someone keys the line items by hand before anything gets matched, that manual step is both the slowest part of the process and the source of most false mismatches. Here is how 3-way matching works, how it differs from 2-way and 4-way matching, what happens when a match fails, and how to automate it without buying a workflow you do not need.

What is 3-way matching in accounts payable?

3-way matching in accounts payable is a control that compares three documents before a supplier invoice is approved for payment: the purchase order, the goods receipt, and the invoice itself. It confirms the vendor billed for exactly what was ordered and actually delivered, at the agreed price. If the three agree, payment proceeds; if not, the invoice is held.

The point of the control is to make sure money only leaves the business for things it genuinely committed to and received. Without matching, an AP team is trusting that every invoice is correct, which is how overbilling, duplicate charges, and payments for undelivered goods slip through. Invoice matching, of which 3-way is the most common form, turns that trust into a verifiable check that auditors will accept.

What are the three documents in a 3-way match?

The three documents in a 3-way match are the purchase order, the goods receipt note, and the vendor invoice. The purchase order records what was ordered and at what price, the goods receipt records what was actually delivered, and the invoice records what the supplier is billing. Matching them line by line proves all three agree before money leaves the building.

Each document comes from a different point in the buying cycle, which is what makes the cross-check meaningful. The purchase order originates in procurement when the order is placed, so the quality of your purchase order management sets the baseline every later match is measured against. The goods receipt comes from whoever logs the delivery. The invoice arrives last, from the vendor. Because they are created independently, three documents that agree are strong evidence the transaction is legitimate.

What is the difference between 2-way, 3-way, and 4-way matching?

2-way matching compares just the purchase order and the invoice. 3-way matching adds the goods receipt to confirm delivery. 4-way matching adds an inspection or quality report. You step up the levels as the risk and value of the purchase rise: 2-way for services, 3-way for physical goods, and 4-way for high-value or quality-critical orders.

Match typeDocuments comparedBest for
2-way matchPurchase order + invoiceServices, software, and low-value items with no physical delivery to confirm
3-way matchPurchase order + goods receipt + invoiceInventory and physical goods where confirming delivery matters
4-way matchPurchase order + goods receipt + invoice + inspection reportHigh-value or quality-critical buys in manufacturing, healthcare, and construction

Most companies do not pick one level for everything. They set policy by category and dollar threshold, so a software subscription clears on a 2-way match while a pallet of inventory needs a 3-way match and a batch of medical devices needs a 4-way. The higher the level, the more documents have to line up, and the more it matters that each one is captured accurately.

What is the 3-way matching process step by step?

The 3-way matching process runs in six steps: raise the purchase order, receive the goods and log a receipt, receive the supplier invoice, capture the invoice data, match the three documents line by line, then approve and pay or flag an exception. The match itself is fast once the data is structured; the delay is almost always in capturing the invoice.

StepWhat happens
1. Purchase order raisedProcurement orders the goods or services and sends the PO to the vendor
2. Goods receivedReceiving logs quantities on a goods receipt note as items arrive
3. Invoice receivedThe vendor sends the invoice to accounts payable
4. Invoice capturedHeader and line-item data is read off the invoice into structured form
5. Documents matchedPO, receipt, and invoice are compared line by line on quantity and price
6. Approve or flagMatches clear for payment; mismatches route to a person as exceptions

Notice that step four sits between receiving the invoice and matching it, and it is the one step that does not move forward on its own. Until the invoice is captured into structured line items, there is nothing for the matching logic to compare. That is why teams that automate everything except capture still feel slow: a person is retyping invoices before the automated match can even start.

What happens when a 3-way match does not match?

When a 3-way match fails, the invoice becomes an exception and is held from payment until someone resolves it. Common causes are price differences between the PO and the invoice, quantity gaps between what was ordered and what was received, missing goods receipts, and duplicate or partial invoices. Each exception needs a person to investigate, which is why teams work to prevent them upstream.

Most AP systems apply tolerances so tiny, expected variances (a few cents of rounding, a small freight charge) clear automatically instead of stopping every invoice. Real exceptions still need judgment: was the price renegotiated, did a partial shipment arrive, is this a duplicate of last month's invoice? A large share of exceptions trace back to bad source data rather than a real billing problem, so the cleaner your captured line items are, the fewer false mismatches you chase.

How do you automate 3-way matching?

You automate 3-way matching by feeding clean, structured data into a matching engine, then letting it compare quantities and prices within set tolerances and auto-approve anything that matches. The catch is the input: matching software can only compare line items it can read, so the first thing to automate is capturing the invoice data, not the comparison itself.

Capture is where automation pays off fastest, because it is the manual step every later one waits on. Modern invoice OCR software reads the vendor, dates, totals, and every line item off a PDF or scanned invoice and returns structured data, so the matching engine has clean values to work with instead of a person retyping them. You can convert PDF invoices to Excel when you want to review before importing, rely on automated invoice data capture at high volume, and lean on accurate line-item extraction so the match has real quantity and price detail per line rather than just an invoice total.

With the data captured, the rest can run on rules. A full accounts payable automation layer holds the PO and receipt, runs the comparison within tolerance, and routes only the genuine exceptions to a person. Keep the purchase side clean with proper PO management, capture the receipts and non-PO spend that still arrive on paper with a receipt and invoice data tool, and once a matched invoice is approved, hand it to an accounts payable payment workflow to schedule and pay. If you are weighing whether you need a capture tool or a whole platform, our breakdown of invoice OCR vs AP automation explains which problem each solves, and the steps to automate invoice processing show the rollout in order.

Can you do 3-way matching in Excel?

You can do 3-way matching in Excel for low volumes by exporting the purchase order, the receipt, and the invoice into one workbook and using lookups to compare quantity and price line by line. It works as a stopgap, but it breaks down as volume grows, because someone still has to type each invoice into the sheet by hand before any formula can compare it.

The bottleneck in the spreadsheet approach is never the formula; it is the data entry. If you want to keep matching in Excel a little longer, the fix is to stop typing invoices and instead export them straight into a sheet. Converting each invoice PDF to an Excel file with its line items intact gives you rows you can match with a lookup in seconds, which buys time before you commit to a full matching system.

Why is 3-way matching important?

3-way matching is important because it stops a company from paying for goods it never ordered or never received. It catches overbilling, duplicate invoices, and supplier errors before money goes out, protects cash, and creates an audit trail that proves every payment was justified. It is one of the simplest, highest-value controls in accounts payable.

The control also scales the savings as your invoice volume grows, but only if the data behind it is reliable. A match built on hand-keyed line items inherits every typo, so the same control that should protect cash starts generating false exceptions that eat the time it was meant to save. Get the capture right and 3-way matching does exactly what it promises: it pays the right vendors the right amount, automatically, and flags the handful that need a human.