Skip to content
Aavenir Atlas early access is open Contractflow on the ServiceNow Store since 2019 Runs on ServiceNow, or standalone ProcureTech100 2025/26 Pioneering Digital Solution ISO/IEC 27001:2022 certified, SOC 2 Type 2 compliant
Accounts payable automation

What is two way and three way invoice matching?

Matching is how accounts payable proves an invoice is right before paying it. The question is how many documents you check it against.

MPMisri ParikhAug 11, 2022 · 4 min read

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
See matching that reaches the contract Watch Aavenir AI match an invoice against the purchase order, the receipt and the contract rate, and route the difference.
Schedule a demo

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.

Frequently asked questions (FAQ)

Frequently asked questions

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

Two way matching compares the invoice with the purchase order on price and quantity. Three way matching also compares it with the goods receipt, to confirm the goods were actually received before payment. See Invoiceflow.

When is two way matching enough?

Two way matching is usually enough for services, subscriptions and low risk purchases with no physical delivery to record. For physical goods, three way matching is the safer standard because it confirms receipt. Learn about invoice coding and receiving.

Why check invoices against the contract?

The purchase order may carry the wrong price. The contract holds the negotiated rates, discounts and caps, so checking against it catches overcharges that a perfect purchase order match would miss. See invoice to contract compliance.

Have a question we have not answered? Ask the Expert

Keep reading

Accounts payable automation Duplicate invoices: what they are and how companies use AI to catch them What duplicate invoices are, why exact match checks miss them, the common causes and how AI and better vendor data stop duplicate payments before they happen.Read more Accounts payable automation Seven features of an accounts payable solution that automates invoice processing The seven features an accounts payable solution needs to automate invoice processing, from inbox capture and AI extraction to matching, workflow and analytics.Read more Accounts payable automation Why automate accounts payable? Five reasons to automate accounts payable: faster cycles, fewer errors and duplicates, better visibility, more early payment discounts and happier suppliers.Read more

Schedule a demo

See your contracts run on one record.

  • 1 A 30 minute walkthrough Built around your team, whether that is procurement, legal, IT or finance.
  • 2 Your contracts, not ours Bring a few sample agreements and watch Aavenir AI extract and review them.
  • 3 ServiceNow or standalone We show the deployment that fits the systems you already run.

Prefer to talk first? Contact the team.