Skip to content

3-Way Matching

Three-way matching is the core verification engine in the Invoice Processing Unit. It compares every supplier invoice against the original Purchase Order (what was agreed) and the Goods Receipt Note (what was actually received) to ensure you only pay for what was ordered at the agreed price and actually delivered.

What Would You Like to Do?

TaskDescription
How 3-Way Matching WorksUnderstand the matching formula, score calculation, and decision logic
Handle Match FailuresWhat to do when an invoice has variances or doesn't match
Matching Field ReferenceEvery field on the Match Result form explained
Matching FAQ & TroubleshootingCommon questions, error messages, and solutions

How Matching Fits the IPU Flow

Invoice Inbox (OCR complete)

   IPU Record Created

┌─────────────────────────────┐
│   3-WAY MATCHING ENGINE     │
│                             │
│  PO (ordered) ←→ Invoice   │
│  GRN (received) ←→ Invoice │
│  PO ←→ GRN (cross-check)   │
└─────────────────────────────┘

   Match Score Calculated

   Decision: Auto-Approve / Review / Reject

   Purchase Invoice Created (if approved)

What Gets Compared

The matching engine checks three categories of data across all three documents:

CategoryWhat Is ComparedExample Variance
QuantityUnits ordered (PO) vs. units received (GRN) vs. units invoicedOrdered 100, received 98, invoiced 100
PriceAgreed rate (PO) vs. invoiced ratePO rate ₹50/unit, invoice rate ₹52/unit
ValueTotal amounts across all three documents including taxesPO total ₹5,000, Invoice total ₹5,200

Each category produces a component score, and the combined result determines the overall match score and decision.

Common Scenarios

ScenarioWhat to Read
Want to understand the match score percentageHow 3-Way Matching Works
Invoice has a quantity varianceHandle Match Failures
Invoice was auto-approved and you want to know whyHow 3-Way Matching Works
Need to understand the Match Result formMatching Field Reference
Match is stuck or showing an errorMatching FAQ & Troubleshooting

PayInvoice Next — P2P Documentation v1.0.0-beta