Three-Way Matching

    Automated Three-Way Invoice Matching

    Three-way matching answers one question before money is committed: does what we were invoiced agree with what we ordered and what we received? Drelo.ai automates the comparison of invoice, purchase order and goods receipt data, classifies the differences and routes anything outside your tolerances to the people who can decide.

    Purchase orderGoods receiptInvoiceTolerances you set
    See AP Automation

    The three documents

    Matching compares three records that are created at different moments by different parties. Each one states something the others cannot.

    Purchase order

    What your organisation agreed to buy: items, quantities, agreed prices and terms. Created by you, before delivery, and the reference point for what was expected.

    Goods receipt

    What was actually received, recorded at delivery or on service confirmation. Created by your receiving or requesting side, and the evidence that the obligation exists.

    Invoice

    What the supplier is charging: items, quantities, prices and totals. Created by the supplier, and the claim being tested.

    Comparing all three catches the cases that any pair alone would miss — invoiced at the wrong price, invoiced for more than was delivered, or invoiced for something never received at all.

    Three documents, one comparison
    Purchase order
    • Items and quantities ordered
    • Agreed prices and terms
    Goods receipt
    • What was actually received
    • Service confirmation where applicable
    Invoice
    • What the supplier is charging
    • Lines, prices and totals
    Matching process
    • Order and line association
    • Quantity comparison
    • Price and value comparison
    • Tolerance evaluation
    Match

    Differences inside your tolerances continue through the AP process, with the accepted difference still recorded.

    Exception

    Anything outside tolerance is classified by what differs and routed for review and resolution.

    Tolerances are your commercial policy and are set per category, supplier group or entity. No tolerance values are assumed here.

    Matching dimensions
    Matching dimensionWhat is comparedTypical exception
    QuantityQuantity invoiced against quantity received and quantity ordered.Invoiced for more than was received, or an unagreed over-delivery.
    PriceUnit price invoiced against the agreed order price.Invoiced above or below the agreed price.
    PO referenceThe order reference carried on the invoice, in whatever form it arrives.Missing or unresolvable order reference.
    Receipt statusWhether a receipt or service confirmation exists for the invoiced line.Nothing recorded as received against the invoiced line.

    Examples of the dimensions compared. Which apply depends on your order and receipt data.

    How matching supports AP processing

    For an accounts-payable team, matching is where most of the manual effort and most of the risk sit. Done by hand it means opening the invoice, finding the order, finding the receipt, comparing lines, and chasing whoever knows why the numbers differ.

    Automating the comparison changes what the AP team spends time on. The invoices that agree stop consuming attention; the ones that disagree arrive already explained — which line, which value, how large the difference. AP becomes a decision-making function rather than a lookup function.

    What automated matching is for

    • ·Preventing payment for quantities that were not received
    • ·Catching prices that do not reflect the agreed order
    • ·Identifying duplicate invoices against the same order
    • ·Separating the invoices that need attention from the ones that do not
    • ·Creating a consistent, reviewable record of why an invoice was accepted

    The matching path

    Invoice to matched result
    STEP 01
    Invoice captured

    Header and line data are extracted and validated.

    STEP 02
    Reference found

    The purchase order the invoice refers to is identified.

    STEP 03
    Receipt located

    Goods receipt or service confirmation data is retrieved.

    STEP 04
    Compare

    Quantities, prices and values are compared line by line.

    STEP 05
    Decide

    Differences inside tolerance continue; the rest become exceptions.

    STEP 06
    ERP

    The prepared result is handed to the ERP per the agreed process.

    What is compared
    01
    Quantity

    Invoiced quantity against the ordered quantity and, where applicable, the quantity receipted.

    02
    Price

    Invoiced unit price and line value against the agreed purchase-order price.

    03
    PO reference

    Whether the invoice resolves to a purchase order and the correct lines on it.

    04
    Receipt

    Whether goods or services were confirmed as received before the invoice continues.

    Matched

    Continue

    The invoice resolves to the right purchase order and receipt, and quantity and price agree within the agreed tolerance.

    • ·Invoice continues on the normal path
    • ·Comparison result recorded with the invoice
    • ·No manual review required
    Exception

    Review

    A document cannot be resolved, or a difference falls outside tolerance, so the invoice is held for a person to decide.

    • ·Reason for the difference stated
    • ·Routed to the role that can resolve it
    • ·Decision and outcome kept in the invoice history

    Both outcomes are recorded, so a matched invoice is as traceable as an exception.

    Matching logic

    Matching happens in layers. The first is finding the right documents: the invoice must be connected to the correct purchase order, and its lines to the correct order lines and receipts. This step is often the harder one, because suppliers reference orders inconsistently and describe items in their own terms.

    Line association

    • ·Resolving the order reference carried on the invoice, in whatever form it arrives
    • ·Associating invoice lines with order lines using references, item codes and descriptions
    • ·Handling invoices that cover several orders, and orders invoiced across several invoices
    • ·Handling receipts that are partial or spread over multiple deliveries

    Comparison

    • ·Quantity invoiced against quantity received, and against quantity ordered
    • ·Unit price invoiced against the agreed order price
    • ·Line values and their sum against the invoice total
    • ·Tax treatment consistency across the documents
    • ·Freight, surcharges and allowances where they appear on one document but not another

    Tolerances, conceptually

    Perfect agreement is not the everyday case. Rounding, currency conversion, small weight variances on bulk goods and minor freight differences all produce differences that are real but not worth investigating. Tolerances are the policy that says which differences are acceptable.

    How tolerances are usually expressed

    • ·An absolute amount — a difference up to a fixed value is accepted
    • ·A percentage — a difference up to a share of the line or invoice value is accepted
    • ·Both together, with whichever is smaller applying
    • ·Separate treatment for quantity differences and price differences
    • ·Different limits by category, supplier group or entity

    Two points matter more than the numbers. First, tolerances are your commercial decision, not a software default. Second, a difference accepted within tolerance is still recorded — accepted is not the same as invisible.

    Exceptions

    Anything outside tolerance becomes an exception, classified by what actually differs so that it reaches the right person rather than a generic queue.

    • ·Price variance — invoiced above or below the agreed order price
    • ·Quantity variance — invoiced for more than was received
    • ·No receipt — nothing recorded as received against the invoiced line
    • ·Missing or unresolvable order reference
    • ·Unexpected charges not represented on the order
    • ·Suspected duplicate against an order already invoiced
    • ·Over-delivery recorded on receipt but not agreed on the order

    A price variance is a buying conversation; a missing receipt is a receiving conversation; a duplicate is an AP control matter. Classifying the difference is what makes the exception actionable instead of merely visible.

    Human review where required

    Matching decides whether documents agree. It does not decide whether a disagreement is acceptable — that is a commercial judgement, and it stays with people.

    Practically, this means a clean match inside tolerance can follow an automated route, while variances are presented to the person who owns them with the comparison already laid out. We deliberately do not claim that every matched invoice posts itself unattended: how far the automated path extends is configured with your finance team and the owners of the ERP, and organisations set that boundary differently depending on control requirements and approval policy.

    ERP data

    Matching is only as good as the data it compares against. Purchase orders, receipts, vendor master data and the financial documents live in your ERP, and matching reads them rather than replacing them.

    • ·Purchase order header and line data, including agreed prices and open quantities
    • ·Goods receipt or service confirmation records against those lines
    • ·Vendor master data used to resolve the invoicing party
    • ·Item or material references used to associate lines
    • ·Records of what has already been invoiced against the order

    How that data is read, and how prepared results are handed back, depends on the integration pattern agreed for the landscape — see integrations, and SAP AP automation for SAP environments.

    Auditability

    A matching decision has to be reconstructable later. For each invoice, the record should show which documents were compared, what differed, which tolerance applied, whether an exception was raised, who resolved it and on what basis, and what was handed to the ERP.

    This is what makes automated matching defensible rather than simply fast: the automated path leaves a more consistent trail than a manual one, because every comparison is recorded the same way.

    Frequently asked questions

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

    Two-way matching compares the invoice with the purchase order. Three-way matching adds the goods receipt, so it also confirms that what is being invoiced was actually received. Two-way is often used for services or for spend where no receipt exists; three-way is the norm for physical goods.

    Does Drelo.ai post matched invoices automatically?

    We do not claim fully autonomous posting as a given. Drelo.ai prepares and performs the comparison, classifies the result and hands prepared data to the ERP. Whether a clean match proceeds without a human step, and under what limits, is a configuration and governance decision made with your finance team and the owners of the ERP.

    Who sets the tolerances?

    You do. Tolerances encode your commercial policy — what size of difference is not worth a person's time — so they belong to finance, not to software. They are usually set per category or supplier group rather than one global number.

    What happens when there is no purchase order?

    Then three-way matching does not apply and the invoice follows a different route, typically coding and approval rather than matching. Non-PO spend is a normal part of the mix and should be handled deliberately rather than forced into a match.

    What about partial deliveries?

    They are common and should not be treated as errors. An invoice for part of an order is matched against what has been received so far, with the remaining quantity still open. The distinction that matters is between an open remainder and an over-delivery.

    Does the ERP still hold the data?

    Yes. Purchase orders, receipts and the financial documents remain in your ERP. Matching reads that data and prepares a result; it does not become a parallel system of record.

    Review your matching rules with us

    Tell us how your orders, receipts and invoices line up today, and which variances consume the most time. We will walk through how the comparison and exception routing would be set up.

    See AP Automation