Procurement and accounts payable teams try to balance choosing the right suppliers with protecting the savings they negotiate. To hold that balance, they apply validation rules before paying: vendor validation, purchase order matching, general ledger account checks and more. Two way and three way invoice matching are the most common.
This guide explains what invoice matching is, how two way, three way and four way matching work, the problems with doing it by hand and how automation, including matching against the contract, makes it faster and more reliable in 2026.
What is invoice matching?
Invoice matching compares the details on a supplier invoice with the organization's own purchasing records, such as the purchase order, the goods receipt or the contract. It confirms that the organization is paying for what it ordered, at the price it agreed, for what it actually received.
Matching also creates an audit trail. Purchasing, receiving and accounts payable each contribute a record, and the match shows that all three agree. If there is no exception, the invoice can be approved for payment. If there is, someone investigates before money leaves.
What is two way matching?
Two way matching is the simplest check. Accounts payable compares the invoice with the corresponding purchase order and confirms that:
- The total invoice amount is no more than the purchase order total
- The price of each line on the invoice is no more than the price on the purchase order
- The quantities billed do not exceed the quantities ordered
Two way matching suits services, subscriptions and low risk purchases where there is no physical receipt. Its weakness is that it cannot tell whether the goods actually arrived.
What is three way matching?
Three way matching adds the goods receipt. Accounts payable checks the invoice against both the purchase order and the record of what was received, confirming that the organization is billed only for goods that arrived in the right quantity.
It keeps purchasing, accounts payable and inventory aligned, and it is the standard control for physical goods. Where quality matters, some organizations add a fourth document, an inspection record, in four way matching, so they pay only for goods that passed inspection.
| Method | Documents compared | Best for |
|---|---|---|
| Two way | Invoice and purchase order | Services, subscriptions, low risk items |
| Three way | Invoice, purchase order and goods receipt | Physical goods |
| Four way | Invoice, purchase order, goods receipt and inspection | Goods with quality requirements |
What are the problems with manual matching?
- Time: documents sit in different systems, so each match means looking in several places
- Errors: comparing lines by eye invites mistakes, especially on long invoices
- Partial deliveries: split shipments and partial invoices are hard to track by hand
- Data quality: matching is only as good as the purchase order and receipt data behind it
- Expenses: employee expense claims often have no purchase order to match against, so different checks are needed
These problems are why most organizations automate matching and use AI to read invoices and expense receipts.
Why match against the contract as well?
A purchase order is only as accurate as the person who raised it. If it was created at list price instead of the negotiated rate, or without an agreed discount, a perfect three way match still overpays. The contract holds the agreed rates, discounts, caps and payment terms.
Adding the contract to the match catches those errors, and protects savings procurement negotiated. It also lets accounts payable time payments to agreed terms and capture early payment discounts. See invoice to contract compliance.
How does automation help?
Automated matching extracts invoice data, finds the related purchase order, receipt and contract, compares them line by line and applies tolerances you set. Invoices that match flow to approval. Exceptions go to a person with the difference already identified, such as two units short or a price above the contract rate.
In Invoiceflow, Aavenir AI reads each invoice and runs two way, three way and contract checks, and your team approves or rejects each exception. See invoice coding and receiving.
The bottom line
Two way matching checks the invoice against the purchase order. Three way adds the goods receipt. Automating both, and adding the contract to the comparison, catches errors before payment and protects the terms you negotiated.