Invoice Matching Automation: How PO Invoice Matching Works

Jul 10, 2026

Convert a purchase order to Excel, CSV, or JSON

PDF, JPG, PNG, BMP, HEIC, TIFF

Submit your purchase orders

Invoice matching automation is software that checks a supplier invoice against its purchase order, and usually its receipt, before the invoice is paid. Instead of a clerk comparing three documents by hand, the system confirms the quantities, prices, and totals line up, pays the ones that match, and routes only the exceptions to a person. It is the control that stops a company from paying for goods it did not order or did not receive.

Last updated July 2026.

Automated matching only works when the data on all three documents is clean and structured. The tool above handles the purchase order side of that: upload a PO and the supplier, PO number, and line items come back as data your matching system can compare against, in about ten seconds, rather than being locked in a PDF. The match itself runs in your AP or ERP system.

What invoice matching is

Before paying a supplier, accounts payable confirms the bill is legitimate by comparing it to the documents that authorized the purchase. Depending on how many documents are compared, this is called two-way, three-way, or four-way matching. Automation applies those same checks with software, so the routine bills that match clean flow straight through and staff only touch the ones that do not.

Match type Documents compared What it confirms
Two-wayInvoice and purchase orderYou were billed what you ordered, at the agreed price
Three-wayInvoice, PO, and goods receiptYou were billed for what you actually received
Four-wayInvoice, PO, receipt, and inspectionThe received goods also passed quality inspection

What is invoice matching automation?

Invoice matching automation is the use of software to compare a supplier invoice against its purchase order and receipt automatically, before payment. The system checks that the quantities, unit prices, and totals agree, approves invoices that match within tolerance, and flags the rest for a person to review. It replaces the manual line-by-line comparison that AP teams otherwise do by hand on every bill.

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

Two-way matching compares the invoice to the purchase order, confirming you were billed for what you ordered at the agreed price. Three-way matching adds the goods receipt, so it also confirms you were billed only for what actually arrived. Three-way is the stronger control because it catches billing for goods that were never delivered, which a two-way match cannot see.

How automated invoice matching works

The flow is the same set of checks a clerk runs, executed by software and at volume:

  1. Capture the invoice as data. The invoice arrives as a PDF, scan, or email, and its header and line items are extracted into structured fields.
  2. Find the matching PO and receipt. The system looks up the PO number and pulls the related purchase order and goods receipt.
  3. Compare line by line. Quantities, unit prices, and totals are checked against the PO and the receipt, within a set tolerance for small rounding or price differences.
  4. Approve or flag. Invoices that match within tolerance are approved for payment automatically. Anything outside tolerance becomes an exception routed to a person with the discrepancy highlighted.

The tolerance is what makes automation practical. A penny of rounding or a small freight variance should not stop a payment, so teams set a threshold, by dollar amount or percent, under which a difference is accepted. The mechanics of the underlying check, and the tolerances involved, are covered in three-way matching in accounts payable, and the concept itself in what is a three-way match.

How does automated invoice matching work?

The software captures the invoice as structured data, finds the referenced purchase order and goods receipt, and compares quantities, prices, and totals across all three within a set tolerance. Invoices that agree are approved for payment automatically; those with a discrepancy beyond tolerance are flagged and routed to a person. The result is that staff review only the exceptions instead of every invoice.

Why invoices fail to match

Most exceptions are not fraud; they are ordinary mismatches that still need a human decision. The common ones are:

  • Quantity differences. The invoice bills for 100 but only 90 were received, often a partial shipment with the balance to follow.
  • Price variance. The invoice price differs from the PO price because of a rate change, a missed contract price, or an error.
  • Missing receipt. The goods arrived but were never receipted, so there is nothing for the invoice to match against.
  • No PO. The purchase was made without a PO, so there is no order to compare to at all.
  • Unit of measure mismatch. The PO is in cases and the invoice is in each, so the totals do not line up until the units are reconciled.

Good automation does not eliminate these; it surfaces them fast and clean so a person resolves the real ones instead of hunting for them across three documents.

Can invoice matching be fully automated?

The matching itself can be, but not every invoice will clear without a human. Clean invoices that match their PO and receipt within tolerance can be approved touchlessly, and in a well-run AP shop that is the majority of volume. The exceptions, partial shipments, price variances, missing receipts, and no-PO invoices, still need a person to judge. The realistic goal is a high straight-through rate with staff focused only on the genuine exceptions.

Why the data quality decides everything

Automated matching lives or dies on the quality of the data going in. If the PO line items, the receipt, and the invoice are not captured accurately as structured fields, the system either matches the wrong things or flags everything as an exception, and the automation gives back nothing. That is why capture is the foundation. On the invoice side, teams that convert scanned supplier invoices into structured data feed the matching engine clean line items instead of images. On the purchase order side, the same job is what PurchaseOrders does, and accuracy on the line table is covered in purchase order line item extraction.

What is four-way matching?

Four-way matching adds a quality inspection to the three-way check. Alongside the invoice, purchase order, and goods receipt, it confirms the received goods passed inspection before the invoice is approved. It is used where quality acceptance matters, such as manufacturing components or regulated goods, and it is the strictest of the matching levels because a delivery can arrive in full yet still fail on quality.

Where PurchaseOrders fits, and where it does not

Plainly: PurchaseOrders does not perform invoice matching. It does not compare invoices to POs, apply tolerances, or approve payments. What it does is produce the clean, structured purchase order data that a matching system compares against. It reads a PO and returns the supplier, PO number, and line items as Excel, CSV, JSON, or an API response, so the order side of the match is data rather than a PDF. The matching engine, the tolerances, and the payment approval belong in your AP automation platform or ERP, where the audit trail and the controls already live. Teams handling the accounts payable workflow end to end are the audience for purchase order extraction for accounts payable, and getting the order data into your system is covered in how to import purchase orders to your ERP.