A three-way match in accounts payable holds each invoice until the purchase order, goods receipt and invoice agree. Testing the control confirms that each sampled invoice was held until all three matched, then approved and paid. To test it well, request five documents per sample and check seven attributes against a written tolerance and the payment date.
Test the gate, not just the outcome. A test that only looks at paid invoices misses the control's real job, which is to stop the ones that do not match. The exceptions worth finding sit in a quantity field, an approval limit or a payment date.
From our own test set: SOXLayer's labelled AI test set has six invoice-match cases with 25 attributes, built from fictional invoice packs. In the 10 October 2026 run, the AI matched the expected answer on all 25, and none needed a re-check by the stronger model. A small set with a clean result is a reason to trust the setup, not a reason to stop reviewing.
The short version
- Test the gate: an invoice should wait until all three documents agree
- Seven attributes, each with its own pass and fail criteria
- Five documents per sample, plus the ERP match output
- A missing goods receipt makes a sample Insufficient, never Pass
- Four exceptions to check in every sample
What three-way match control testing actually verifies
The control stops payment for anything never ordered, never received or billed at a price nobody agreed. It works because three records, each created by a different team, have to agree:
- Purchase order (PO). What was ordered, from which vendor, at what price, approved before the spend
- Goods receipt or service confirmation. What actually arrived and how many, confirmed by someone independent of the buyer
- Invoice. What the vendor is billing. Its quantity must agree to the receipt and its unit price to the PO
When all three agree within the documented tolerance, the ERP or the accounts payable team releases the invoice. When they do not, the invoice waits until someone resolves the difference.
That hold is the control. Your test has to show the gate stopped invoices that did not match, not only that matched invoices got paid. If design and operating effectiveness are new ground, start with how to test SOX controls, from design to operating effectiveness.
Two-way match by policy
Some companies run a two-way match (PO to invoice only) for indirect spend below a threshold. If a sample is a two-way match transaction, confirm that is the documented policy for that spend category. If it is, the missing receipt is not an exception.
A failed three-way match usually points upstream
The three-way match leans on other procure to pay controls. When it breaks, the cause often sits further back:
- PO approval limits that are not enforced
- Receiving done by the same person who placed the order
- Vendor master data that allows duplicate vendor records
A tester who checks the match status and stops there will not see any of these. Note them in the workpaper, even when the sample passes.
Start your 14-day free trial
Bring one control and its evidence. The trial includes 5 AI sample tests and 50 manual ones, no card needed.
Seven attributes for a three-way match test template
Break the control into separate attributes, not one "did it match" judgment. Each attribute needs its own pass and fail criteria. Then a tester, or an AI doing the first pass, knows exactly what to check, and a reviewer can see what was checked.
| Attribute | Pass criteria | Fail criteria |
|---|---|---|
| Match status | System or manual match status recorded as Matched before the payment date | Status unmatched, blocked or missing when payment was made |
| Quantity match | Invoiced quantity agrees to received quantity within the documented tolerance | Quantity variance exceeds tolerance with no documented resolution |
| Price match | Invoiced unit price agrees to the PO price within the documented tolerance | Price variance exceeds tolerance with no documented resolution |
| Vendor match | Invoice vendor matches the PO vendor and the approved vendor master record | Paid to a different vendor than the PO, or to an unapproved vendor |
| Approval within DOA | Approved by someone whose delegation-of-authority limit covers the invoice amount | Approver's limit is below the invoice amount, or no named approver is recorded |
| No duplicate invoice | Invoice number, amount and vendor combination is unique in the period tested | The same invoice number, amount and vendor (or a near match) is paid more than once |
| Payment timing | Payment date is on or after the recorded match and approval dates | Payment date comes before the recorded match or approval date |
Tolerances matter more here than in most controls. "Quantities and prices must match" is not a criterion until it says by how much: a fixed dollar amount, a percentage, or zero for certain spend.
"Close enough" is a tolerance right up until two testers apply it to the same invoice. Put the tolerance in the RCM and carry it into the test template, not only into a policy nobody opens during testing.
Evidence to request for each three-way match sample
The control spans three documents and at least two more records. So each sample carries more evidence than a single-approver control. Request:
- Purchase order. Vendor, item or service, quantity, unit price and the PO approver
- Goods receipt or service confirmation. Quantity received, date received and who confirmed it
- Vendor invoice. Invoice number, invoice date, quantity billed, unit price and total
- Invoice approval record. Who approved payment, and when
- Payment record. Payment date, amount and method, tied to the invoice number
- Match status. The ERP match output if the system matches, or the manual matching worksheet if it does not
How many samples to pull depends on how often the control runs. SOX sample sizes by control frequency has illustrative ranges. Your auditor's minimums win.
Here is the line we hold: a sample missing any of the three core documents is Insufficient, never Pass. Without the receipt, nobody can show the goods arrived, and you cannot confirm three records agree when you only have two. That is why SOXLayer's AI proposes Insufficient as its own verdict, next to Pass, Fail and N/A, instead of forcing a guess.
The comparison itself is quick. Finding the goods receipt is what fills the afternoon. It tends to live in a warehouse system, a scanned PDF or an email thread.

Four three-way match exceptions to check in every sample
Each of these hides in a specific field. Know which one before you open the sample.
From our own test set: the short delivery on page five
One held-out case is a five-page invoice pack (fictional data). The invoice and the purchase order agree at 27,300.00. Two pages of PO terms follow. The goods received note is on the last page: 120 of 130 units received, worth 25,200.00. That is 2,100.00 more invoiced than received, against a 1% tolerance of 252.00.
When we ran it on 19 October 2026, the AI returned Fail on the received-quantity attribute and cited the pack. A tester who stopped at page one would have seen a clean match.
Quantity variances
The invoice bills more units than the receipt confirms. Often a partial shipment was invoiced in full, or the receiving clerk logged the wrong number.
These are easy to catch when the tolerance is written down and applied the same way each time. They slip through when a tester decides a gap is "close enough" without checking the policy.
Delegation-of-authority tier breaches
The approver's limit sits below the invoice amount. The routing may not enforce the tier, or someone approved outside their usual role during a leave or a handover.
Check the approver's name against the DOA table in force on the approval date. An approval that exists is not the same as an approval within limits.
Duplicate payments
The same invoice, or a near copy, gets paid twice. Same vendor, same amount, a slightly altered invoice number. It often comes from two submission channels, or a resubmission after a rejection that was never reversed.
One sample cannot prove it was paid only once. Check the vendor's payment history for the period, not the sample alone.
Payment made before proper approval was recorded
The payment date comes before the recorded approval or match date. The payment ran ahead of the control. That is a sequencing failure in the control itself, not a documentation gap.
Escalate even one
Escalate a payment-before-approval exception even if you find only one. It can mean the payment run picks up unapproved invoices under some conditions, which is a design gap, not a one-off operating miss. The deficiency classification guide covers how to weigh it.
Worked example: one three-way match sample (illustrative)
The documents below are illustrative, the same ones on the cover image. Sample 07 is an order from Northwind Supply.
| Document | Reference | Quantity | Unit price | Amount |
|---|---|---|---|---|
| Purchase order | PO-4471 | 100 | $12.50 | $1,250.00 |
| Goods receipt | GR-2208, received Apr 2 by M. Ortiz at dock WH-3 | 96 | Not on receipt | Not on receipt |
| Invoice | INV-90315 | 100 | $12.50 | $1,250.00 |
Walking the attributes:
- Vendor match. Northwind Supply on the PO, the invoice and the vendor master. Pass
- Price match. $12.50 on both the PO and the invoice. Pass
- Approval within DOA. The approver's limit covers $1,250.00. Pass
- Quantity match. Invoiced 100, received 96. A variance of 4 units, or $50.00 at the PO price. An exception unless the documented tolerance covers it
- Match status, duplicates and payment timing. These need the ERP match output, the vendor's payment history and the payment record. Request them before concluding
Before calling the quantity a failure, the tester looks for an explanation. A second goods receipt for the last 4 units, or a credit note for $50.00, would clear it.
If neither exists and the invoice was paid at $1,250.00, the gate let a mismatch through. That is a confirmed exception, and it needs a severity call.
Where AI helps in three-way match control testing
Testing one sample by hand means holding five documents open and cross-checking values across all of them. Holding five documents open at once is a skill nobody puts on a CV. It is also exactly the comparison AI can do on the first pass.
In SOXLayer, the SOX controls software we build, evidence is matched to each sample. The AI then reads it (PDFs, images, spreadsheets) and tests every attribute in the template. For each one it proposes Pass, Fail, Insufficient or N/A, with a confidence score and the exact quote and page it relied on.
On the illustrative sample 07, that would mean labelled highlights on the quantity lines of GR-2208 and INV-90315, with the 100 and the 96 both cited. The tester sees the variance without scanning line items.

Low-confidence or conflicting reads escalate to a stronger model automatically, with the reasons listed. The AI never signs off the test. Until the test is submitted, the tester can accept, edit or override any result, auto-filled ones included, and every override needs a reason. See how AI testing works on a sample, or read how AI for SOX control testing works step by step.
What changes is where the tester's time goes. It moves from hunting for the mismatched field to judging it: a control failure, or a partial delivery with a second receipt on the way.
Rule of thumb: three-way match testing rewards repetition
A three-way match usually runs on every invoice, so it often counts as a control that runs multiple times a day. Our illustrative range for that frequency is 25 to 60 samples a year. At five documents each, that is 125 to 300 documents to read and compare (illustrative, and your auditor's minimums win).
That volume of structured, repetitive comparison is where an AI first pass saves the most reading. Skip AI on this control, for now, when:
- The match is fully automated in the ERP. Your auditor may test the configuration instead of a large invoice sample, if IT general controls are effective. Ask before you sample
- Receipts live on paper at the dock. Get them scanned and linked to the PO before automating anything that reads them
- The tolerance is not written down. Agree it with your auditor and put it in the RCM first
Key takeaways
- Test that the gate held: no payment until the PO, goods receipt and invoice agree
- Seven attributes, each with a written tolerance: match status, quantity, price, vendor, DOA approval, duplicates and payment timing
- Five documents per sample. Missing a core document means Insufficient, not Pass
- Four exceptions to check in every sample: quantity variances, DOA breaches, duplicate payments, payment before approval
- Escalate even one payment-before-approval exception. It can point to a design gap
- AI can test every attribute against the documents and highlight the variance. The tester judges it
Three-way match control testing: common questions
How do you test a three-way match control?
Sample invoices across the period and request the PO, goods receipt, invoice, approval record and payment record for each. Check vendor, quantity, price, approval within DOA, duplicates and payment timing against the documented tolerance. Confirm the match status was recorded before payment.
What documents are needed for a 3-way match?
The purchase order, the goods receipt or service confirmation, and the vendor invoice. For SOX testing, also request the invoice approval record, the payment record and the ERP match output or manual matching worksheet. Together they show the match happened before payment.
What is the difference between a 3-way match and a 2-way match in AP?
A 2-way match compares only the purchase order and the invoice. A 3-way match adds the goods receipt, so the company also confirms that what was billed actually arrived. Some companies use a 2-way match for indirect spend or services below a threshold, so check the documented policy before treating a missing receipt as an exception.
What is 3-way and 4-way matching?
3-way matching compares the purchase order, goods receipt and invoice before payment. 4-way matching adds an inspection or quality acceptance record showing the goods met specification. In both, the invoice should wait until every document agrees within the documented tolerance.
How do you do 3-way matching in accounts payable?
AP links the invoice to its purchase order and goods receipt, then compares vendor, quantity and unit price. If they agree within tolerance, the invoice is approved within delegation of authority and released for payment. If not, it is held until the variance is resolved. Many ERPs run the match automatically and block unmatched invoices.
What tolerance should a three-way match use?
There is no single standard figure. Companies set their own, as a dollar amount, a percentage or zero for certain spend categories. For testing, what matters is that the tolerance is written in the RCM and applied the same way to every sample.
Is a missing goods receipt a failed sample?
Not automatically. Without the receipt you cannot confirm the goods arrived, so the sample is Insufficient until the receipt turns up or the policy says a 2-way match applies. If the receipt never existed and the invoice was paid, treat it as an exception.
Sources and further reading
The standards and guidance behind this article. Your external auditor's methodology and your company's own policy still set the requirements for your program.
- PCAOB AS 1105, Audit Evidence: what makes evidence relevant and reliable
- PCAOB AS 2315, Audit Sampling: how sample size, selection and evaluation are planned for tests of controls
- COSO, Internal Control: Integrated Framework: the framework most companies use to design and evaluate ICFR
Write the tolerance down before testing starts. The loading dock will still have the receipts on Monday.

