Zamp

How to Automate Three-Way Match in Accounts Payable

How to automate three-way matching of invoices, POs and goods receipts: steps, tolerances, exceptions, and how to set it up on Zamp.

9 MIN. READPUBLISHED DEC 3
Ashwat Mahendran
Ashwat MahendranMarketing Team @ Zamp. Documenting the influence and impact of AI across industries.

To automate a three-way match, pull each invoice, its purchase order and its goods receipt into one record, compare quantities and prices line by line against your tolerances, and release clean invoices for payment. Route every mismatch to the person who can fix it, a receiver for missing receipts or a buyer for price changes, with the documents attached.

This guide covers the steps, the exceptions that slow most AP teams down, and how to set the whole process up on Zamp. For the wider picture, see accounts payable automation and the three-way match definition.

Before you start

What you need

Why it matters

Typical source

Open purchase orders with line detail

The invoice is checked against the agreed price and quantity

ERP (SAP, Oracle, NetSuite)

Goods receipts or receiving records

Confirms what actually arrived and when

ERP receiving module or warehouse system

Supplier invoices

The document being approved for payment

AP inbox, supplier portal, EDI

Match tolerances by category

Decides when a small difference is acceptable

AP policy

Exception owners

Each mismatch needs someone who can resolve it

Buyers, receivers, AP lead

How to automate a three-way match, step by step

  • Capture the invoice. Read the supplier, invoice number, date, PO reference, line items, quantities, unit prices, tax and freight from the PDF, email or EDI message.
  • Check for duplicates first. Compare supplier, invoice number, amount and date with invoices already entered. Catching a duplicate here keeps it out of the payment run.
  • Find the purchase order. Use the PO number on the invoice. If it is missing or wrong, search open POs for the same supplier and amount, and flag the invoice if more than one PO fits.
  • Pull the goods receipts. Collect every receipt posted against the PO lines. Partial deliveries mean an invoice may cover only some of what was ordered.
  • Match line by line. Compare invoiced quantity with received quantity, and invoiced price with PO price. Handle unit-of-measure differences, such as cases against eaches, before comparing.
  • Apply tolerances. Accept differences inside your policy. Treat freight and tax lines by their own rules, since they often appear on the invoice but not on the PO.
  • Release or route. Post clean invoices for payment. Send each exception to its owner with the three documents and the specific difference highlighted.
  • Close the loop. Record how each exception was resolved, so the same supplier issue is handled the same way next time.

Common exceptions and who decides

Exception

Usual cause

Who resolves it

No goods receipt

Delivery not yet logged, or goods not arrived

Receiver or requester

Price above PO

Supplier price increase or PO not updated

Buyer

Quantity above receipt

Invoice billed before full delivery

AP, often by holding the invoice until the rest arrives

Unknown line item

Item added to the order by phone or email

Buyer, who amends the PO or rejects the line

Freight or surcharge not on PO

Shipping terms not captured in the PO

AP lead, against the freight policy

Possible duplicate

Same invoice sent by email and portal

AP, before anything is posted

How to set up three-way matching on Zamp

Zamp runs the match as an AI employee that works from your rules and hands exceptions to the right person. Setup typically takes under four weeks.

Flowchart of Zamp's three-way match procedure: duplicate check, quantity check against the goods receipt, and a price-over-2% decision that routes the line to the buyer before posting for payment. A side panel cites the AP lead's answer behind each rule. Demo data.

Above: the procedure Zamp writes for three-way match, shown as a flowchart. Each rule cites the person or document it came from, and boxes in yellow are where a person decides. Demo data.

  • Brief Zamp like a new hire. Create an objective in plain words, such as "match every supplier invoice to its PO and receipt, and release clean ones for payment", say how it will be measured (touchless rate, exception age), and pick the channel where it talks to the AP team.
  • Bring what a new hire would read. Upload the AP policy, tolerance tables, desk procedures and an export of past invoices with how each was resolved. Zamp reads all of it and replays the past invoices before it asks anything. It then asks only what it could not work out, such as how to treat a freight line missing from the PO, and turns each answer into a numbered step that cites who answered.
  • Give it access. Connect the ERP, the AP inbox and the supplier portal through your single sign-on. Zamp works under its own service account, read-only until go-live. You choose who can teach Zamp (the AP lead, a senior clerk) and who can see what it learns.
  • Let it watch a live case. A clerk shares their screen and works a few invoices as usual. Zamp watches and asks only about steps it has not seen before, for example why the clerk checked the receiving log before the PO.
  • Review the procedure. Zamp writes an agent operating procedure: stages, steps, the systems each step touches, the rules with their sources, and the human checkpoints, such as a buyer approving any price above tolerance. The same procedure is shown as a flowchart. The AP lead signs it off.
  • Agree the test cases. Together you agree a set of past invoices, plus a few made-up edge cases, that Zamp must get right before it touches a live one. Zamp may also suggest process changes it found in the history, such as checking duplicates at intake, which you accept, edit or reject.
  • Zamp builds the agent and its app. Zamp builds the agent from the signed-off procedure and reruns the test cases until every one matches. It also builds the AP team's Zampapp: an overview, every invoice as a case, a review queue for the checkpoints, and insights. You review it, then go live.
  • Run and improve. Zamp picks up each invoice as it arrives; nobody starts it. Each invoice shows its steps, the documents Zamp used and a recording of the session in the ERP. Price changes and missing receipts land in the review queue with the documents side by side. When Zamp spots a pattern, such as one supplier always billing freight separately, it proposes a fix, tests it on a copy of the test cases, and the AP lead approves the new procedure version.

What Zamp asks your team

Zamp reads your documents and replays past cases before it asks anything, so its questions are the ones the documents do not settle. Each comes with a suggested answer and the evidence behind it. The answer becomes a numbered step in the procedure that cites who gave it. The examples below are illustrative, with demo data.

Question Zamp asks

Suggested answer

Evidence it found

Answered by

A freight line is on the invoice but not the PO. Approve it, or send it to the buyer?

Approve freight up to 5% of the invoice when the PO terms make the buyer pay freight (prepay and add); send anything higher to the buyer.

1,180 of 1,214 freight lines under 5% were approved unchanged in the last six months

AP lead, in the team's Slack channel

The invoice arrives before the goods receipt. Hold it, or ask the receiver?

Hold for 3 working days, then ask the receiver named on the PO.

87% of early invoices had a receipt posted within 3 days

Receiving supervisor

The supplier bills in cases and the PO is in units. Convert, or reject?

Convert with the item master; reject only if the conversion factor is missing.

212 unit mismatches last quarter, none rejected after conversion

AP lead

Process changes Zamp may suggest

Before the agent is built, Zamp looks across the history for steps that slow the work down without changing outcomes. Each suggestion is accepted, edited or rejected by the process owner, and the test cases are updated to match.

Suggested change

What the history showed

Effect

Send invoices with no PO number to the buyer at intake

Invoices without a PO number waited 6 days on average for a lookup

The buyer finds the PO while the invoice is fresh

Require two different reviewers above $1,000

The same person signed both reviews in 94% of cases

The second review becomes a real check

Ask the receiver on day 1, not after a 3-day hold

Late receipts caused 63% of exceptions older than 10 days

Exceptions close about 3 days sooner

What it looks like once live

The AP team works from its Zampapp: today's invoices, a review queue for price changes and missing receipts, and insights such as a supplier that always bills freight separately. Each insight comes with a proposed change to the procedure that has already been run against a copy of the agreed test cases. The AP lead approves it, and the procedure moves to a new version.

A worked example

Demo data. An invoice from Halden Supply arrives in the AP inbox for 3 lines against PO 4500012876. Zamp reads it, finds no duplicate and pulls the PO and two goods receipts.

Line

PO

Received

Invoiced

Result

Nitrile gloves, case

40 at $38.00

40

40 at $38.00

Match

Shipping cartons, bundle

100 at $12.50

60

100 at $12.50

Quantity above receipt: hold 40

Pallet wrap, roll

24 at $21.00

24

24 at $21.90

Price +4.3%, above 2% tolerance

Line 1 is released. Line 2 waits for the next receipt, and Zamp checks again each morning. Line 3 goes to the buyer in the review queue with the PO price and invoiced price side by side. The buyer accepts the new price and updates the PO, and Zamp releases the line the same day.

What to measure

Metric

What it tells you

Touchless match rate

Share of invoices released with no person involved

Exception rate by cause

Which suppliers, buyers or categories create the most work

Exception age

How long invoices wait on receivers or buyers

Duplicate catches

Payments that would have gone out twice

Early-payment discounts taken

Whether faster matching turns into savings

For the steps around the match, see invoice processing automation, AI agents for accounts payable and duplicate payment detection.

Frequently asked questions

What is a three-way match in accounts payable?

A three-way match compares a supplier invoice with the purchase order and the goods receipt before the invoice is paid. The invoice is approved only when the items, quantities and prices agree across all three documents within the tolerances your policy allows.

What tolerance should a three-way match use?

Many teams set a small price tolerance, often 1 to 2 percent or a fixed amount per line, and no tolerance on quantity unless partial deliveries are common. Set tolerances by spend category, and review them every quarter against the variances your buyers actually approve.

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

A two-way match checks the invoice against the purchase order only. A three-way match adds the goods receipt, so you pay only for what arrived. Service purchase orders often use two-way matching because there is no physical receipt.

Can three-way matching be fully automated?

Clean invoices can be matched and released without a person. Exceptions such as a missing receipt, a price change or a new item still need a buyer, a receiver or an AP lead to decide. Automation removes the manual comparison and routes each exception to the right owner with the evidence attached.

Get new essays in your inboxThe Z-Axis, delivered whenever we publish something worth reading.
Like what you read?Add Zamp AI as a preferred source on Google to see more of our work in your search results.
Prefer on Google
Velocity is Survival

Hand the rest to an AI employee that runs it end-to-end

book demoDither Right Arrow