Three-Way Invoice Matching When the Receipt Says 80 and the Bill Says 100
When an invoice, PO and receipt disagree: match at the line level, send each exception to the person who can resolve it, and measure the work that moved.

A supplier invoices 100 units at $12. The purchase order says 100 at $12. The invoice parser gets every digit right. Receiving has booked only 80 units. What should the automation do with the other 20?
With zero excess tolerance and no earlier invoices, it should surface a 20-unit discrepancy and attach the records that explain it. It can help a reviewer find the missing receipt. The choice to release a hold belongs with the authorized team and its purchasing system.
A clean extraction is only the beginning of this job. The invoice extraction and review lab in n8n gets the fields right. This guide starts where those fields meet the purchase order and the receipt.
Compare the same line three times
Three-way matching compares the invoice, purchase order and receipt under the company's matching rules. Match at the line level. Align supplier, PO line, unit of measure and currency before calculating a difference.
Ten cases of twelve can mean 120 individual units. A model can suggest a mapping from the supplier's description, but an unconfirmed conversion belongs in review.
For the example, all quantities are individual units, price and currency match, and no tax, freight, returns or prior billing complicate the line. The gross invoice line is $1,200. The receipt supports 80 units, worth $960 at the PO price. The difference is $240.
That amount describes the discrepancy. Whether the entire invoice is held or part can proceed depends on the ERP configuration and the team's policy. Oracle documents separate controls for receipt quantities, order quantities and other variances in its matching controls documentation.
Give each exception to someone who can resolve it
| What the records show | First owner and next check |
|---|---|
| 100 invoiced, 80 received | Receiving checks for another delivery or an unposted receipt |
| Receipt exists, PO line is ambiguous | Purchasing confirms the line and unit mapping |
| 100 received, unit price differs | Purchasing checks amendments and effective date |
| Invoice number and supplier match an earlier record | Accounts payable checks duplicate versus corrected bill |
In a real ledger the same receipt can support several invoices. If another invoice already consumed 30 of the 80 received units, only 50 received units remain available in this simplified example. Comparisons that start from the gross receipt every time can approve the same goods twice.
Re-read current allocations before an authorized release. Two reviewers may have opened the same case.
Use AI for the handoff
Let the model draft a short exception note from locked fields. For this case the reviewer needs the PO line, invoice line, receipt timestamp, the two quantities, the variance, and the policy used. Give the note links back to all three records.
Ask receiving whether a second receipt exists. Keep calculations, tolerance checks and authority to release the hold in the purchasing system.
When an invoice is resent, preserve the original attachment and look for a possible duplicate before opening more work. When the remaining shipment arrives, append the new receipt and re-evaluate the same case under the authorized rules. The audit trail should show what changed between the two decisions.
Measure the work that moved
Start with one supplier and one kind of quantity mismatch. Measure active minutes spent assembling evidence, cases reopened after a bad match, and time waiting for receiving.
If reviewers save three minutes preparing each case but still wait six days for goods to arrive, the automation helped review capacity. It didn't shorten the supplier's shipping time. Treat any dollars actually recovered as a separate outcome with evidence of recovery.
For a team deciding whether it still needs a separate extraction subscription, the test starts one step earlier. Can its existing assistant read the source documents and let a reviewer reconcile every extracted row? OneLessTool, which I also run, has an invoice extraction test for that question.
Related Guides
Not sure what to read next? Start here →