The three documents rarely agree perfectly: a supplier might invoice for a slightly different quantity than what arrived, or bill a price that does not match the original order. Three-way matching catches these mismatches automatically by comparing all three documents and only sending the exceptions to accounts payable, instead of a person checking every invoice by hand.
AI document tools have made this more practical for smaller finance teams, since the purchase order, receipt and invoice often arrive in different formats and from different systems. The common misconception is that a mismatch always means fraud. Most mismatches are ordinary errors, such as a partial shipment or a price update that has not been entered into the ERP yet.
Two variants differ only in how many documents are compared. A two-way match compares the purchase order and the invoice, and suits services, subscriptions and utilities, where there is no goods receipt. A four-way match adds an inspection or acceptance record to the purchase order, goods receipt and invoice, so goods that arrived but failed inspection are not paid for.