Finance back office

Three-way invoice matching automation, with tolerances and exception queues

Three-way invoice matching automation compares each supplier invoice with its purchase order and the record of what was actually received, line by line, before anything is paid. Invoices that agree within your tolerance rules move on to payment; the rest go to the person who can fix them, with the difference already worked out. We build the matching engine, the exception screens and the integrations with QuickBooks, Xero or your ERP, and your finance team sets the rules.

Book a workflow review

Why matching by hand stops working at volume

Matching by hand means an AP clerk opens the invoice, finds the purchase order, then hunts for proof of delivery: a signed delivery note, a stock entry, an email from a site. When the three agree, the invoice is approved. When they do not, it waits while emails go back and forth between finance, procurement and whoever received the goods.

Imagine a restaurant group with eighteen branches in the UAE. Branches receive produce and dry goods several times a week, a storekeeper signs a paper delivery note, and suppliers invoice weekly. Tomatoes ordered by the kilo are invoiced by the box, two lines arrive short, and one supplier raised a price on Monday. Matching that by hand takes most of someone's week, and short deliveries tend to be paid in full because the signed note cannot be found in time.

The costs are quiet ones: paying for goods that never arrived, letting small price rises become the new normal, paying twice when two invoices cover one delivery, and holding invoices so long that suppliers stop offering good terms. Our glossary entry on the three-way match explains the basic idea.

Choosing the right match for each kind of spend

Not every purchase needs three documents. Choose the match by category of spend rather than one rule for everything:

MatchDocuments comparedTypical use
Two-wayOrder and invoiceServices, subscriptions and rent, where nothing is counted on arrival
Three-wayOrder, receipt and invoicePhysical goods: stock, materials, equipment
Four-wayOrder, receipt, inspection result and invoiceGoods that must pass a quality check before acceptance, such as materials tested on site

For services, a confirmation from the person who ordered the work, such as an approved timesheet or a completed job report, stands in for the receipt.

Tolerance rules that catch overcharges, not noise

Exact matches are rare. Prices carry decimals, VAT rounds and suppliers add lines nobody ordered. Tolerances decide which differences are noise and which need a person:

  • Price. A small allowed difference per unit, set per supplier or category. Pair a percentage with an absolute cap and apply whichever is smaller: two percent of a small order is noise, two percent of a large one is real money.
  • Quantity. Stricter: never pay for more than was received, counted across every invoice on the same order line, so two invoices cannot each bill the full delivery.
  • Units of measure. A conversion table per supplier and item (boxes to kilos, cartons to pieces), so a correct invoice is not flagged just because it counts differently.
  • Lines that were not ordered. Delivery charges and surcharges get their own rule: allowed for named suppliers up to a cap, or sent to the buyer.
  • Rounding. A tiny absolute tolerance for VAT and unit-price rounding, so decimals do not fill the queue.

Tolerances are a financial control. Your controller decides them, with your auditor's view where it matters, and we build the rules they choose. Changing a tolerance then needs an approver and leaves a log entry, like any other change to a control.

What the matching software does

  • A line matcher that pairs invoice lines with order lines using item codes, a cross-reference from supplier codes to yours, and unit conversions. Where descriptions differ, a language model suggests the pair and a person confirms it once; the mapping is then reused.
  • Running balances per order line: ordered, received, invoiced and remaining, so over-billing spread across several invoices is caught.
  • Holds that clear themselves. An invoice waiting for a receipt is checked again when the receipt is posted, and escalated after the number of days you set.
  • An exception screen with the order, receipt and invoice lines side by side, the rule that failed, the difference, and buttons for the usual outcomes, including a drafted query to the supplier for the buyer to edit and send.
  • Credit note matching that links a supplier's credit back to the invoice it corrects.
  • A receiving screen for branches or sites that have none: quantities, a photo of the signed delivery note and the receiver's name, on a phone.
  • Reports: match rate by supplier and category, exceptions by reason and age, and price differences by supplier for procurement.

Where orders and receipts come from

Orders usually live in QuickBooks, Xero, an ERP or a procurement tool. Receipts are often elsewhere: an inventory app, a warehouse system or a paper note at a branch. We connect to each through its API, webhooks where offered, or a scheduled export, and matched invoices post to the accounting system as bills that carry the order reference. When item codes and supplier records disagree between systems, that clean-up comes first, as our data integration page explains.

Sending each exception to the person who can fix it

Each exception carries its reason, so it reaches the person who can resolve it instead of sitting with AP:

ReasonOwnerUsual outcome
Price above toleranceBuyerAccept and update the order, or ask the supplier for a credit note
Billed more than receivedReceiving branch or warehouseConfirm a late receipt, or pay only what arrived and request a credit note
No receipt yetThe system, then the receiverHeld and checked again when the receipt is posted
No order referenceThe person who requested the purchaseA retrospective order under your policy, or rejection
Unknown itemProcurementThe supplier's code mapped to your item once, then reused

Open exceptions show their age, and the owner's manager sees anything older than the limit you set. Clearing an exception always needs a recorded reason, so an overcharge cannot be waved through without a note. Our article on handling automation exceptions goes deeper on queue design.

Controls and the audit trail

Every project begins with a threat review. For matching, the risks are internal as much as external: someone approving their own purchase, or a tolerance loosened quietly.

  • Separation of duties. The person who raises an order should not also record its receipt and approve its invoice. The software checks this on every match, not once a year.
  • Protected settings. Only named roles change tolerances and conversion tables, a second person approves, and the old and new values are logged.
  • A traceable decision for every payment. The documents, the rule and its version, and who resolved each exception and why, so an auditor can follow any payment back to its order.
  • Narrow access. Following least privilege, the engine reads orders and receipts and writes only bills and holds.
  • Sensitive prices. Supplier price lists are commercial secrets, so access is by role, and any AI provider works on terms that exclude training on your data.

Measuring the result, and where to start

A quick first measure: the free invoice audit time calculator turns your monthly volume, minutes per invoice, the share you check and your error rate into hours spent and errors that slip through.

We measure a baseline from a recent month before building, so improvements are shown rather than asserted:

  • First-time match rate for invoices that have an order.
  • Exceptions by reason, and how long each stays open.
  • Invoices on hold at month-end.
  • Credit notes recovered for price and quantity differences.
  • Staff time per exception.

A high match rate is not success on its own. Loose tolerances raise it while letting overcharges through, so report the total value accepted within tolerance next to the rate.

Most projects start with a discovery sprint: a month of real orders, receipts and invoices, a check of item codes and units, tolerance rules drafted with your controller, and a clickable prototype of the exception screen. The build then begins with one spend category or a handful of suppliers, with weekly demos throughout. Invoice capture is covered on our accounts payable automation page, and orders get cleaner upstream with procurement quote comparison.

A small first step

A 30-minute workflow review

Pick one process that costs your team time. We look at it with you and tell you honestly whether automation or an AI agent pays, what it would take, and what to measure first.

Message us on WhatsApp

Questions we get asked

  • Two-way matching compares the purchase order with the invoice, which suits services and subscriptions where nothing is counted on arrival. Three-way matching adds the receipt, so you pay only for what actually arrived, which suits stock, materials and equipment. Many companies use both, chosen by category of spend.

  • There is no universal figure. Your controller sets it per supplier, category or order value, ideally as a percentage with an absolute cap. Start tight, review the exceptions and the value accepted within tolerance each month, and adjust with an approver and a logged reason. We build the rules; the numbers are your finance team's decision.

  • The invoice is held as waiting for receipt, not rejected. When the receipt is posted, the match runs again automatically and the invoice moves on if it agrees. If no receipt arrives within the number of days you set, the receiver is reminded, then their manager, so nothing waits silently.

  • Both handle purchase orders and can turn an order into a bill. Matching invoice lines against receipts with tolerances usually needs an inventory add-on or custom software, depending on your plan and setup. Features change, so we check the current options for your subscription during discovery before recommending a build.

  • Most of the matching is plain rules, and it should be: rules are predictable and easy to audit. AI helps around them, by pairing invoice lines with order lines when descriptions differ, suggesting the likely order when an invoice has no reference, reading delivery notes and drafting supplier queries. It never approves a difference that breaks a rule.

Keep exploring

Ready to build something secure?

Tell us about your product. We will reply with a clear plan.

Start a project

We would like to use Microsoft Clarity to see how visitors use the site, so we can improve it. It sets cookies and is off unless you accept. Cookie policy