Back to all posts
Workflow Automation7 min read·October 26, 2026

Can AI Match Invoices to Purchase Orders and Receipts?

TB
ThynkBlox AI Team
AI Engineering

AI can help with three-way matching by proposing which invoice, purchase order and goods receipt belong together, including their line items. Explicit rules should then check quantities, prices and approved tolerances before a match can pass. Treat a plausible match as a candidate, with unresolved differences sent to a named reviewer.

What should three-way matching check?

For this workflow, give each document a distinct role: the purchase order records what was ordered, the goods receipt records what was accepted as received, and the invoice records what the supplier is charging.

Define a successful match at line level. A matching invoice total alone should not satisfy the checks.

CheckQuestion the workflow must answer
Supplier and orderDoes this invoice belong to the correct supplier and purchase order?
Item identityDoes each invoice line refer to the ordered and received item?
QuantityIs enough accepted receipt quantity available for this invoice?
PriceDoes the invoice price agree with the order or an authorised change?
Units and currencyAre the values expressed on the same basis?
Previous allocationsHas any receipt quantity already been used against another invoice?
TolerancesDoes each permitted difference fall within an explicit rule?

Keep matching separate from payment approval. Passing these checks should grant only the next action your policy authorises. The wider invoice workflow, from intake to posting, is covered in AI for accounts payable invoice processing.

Where should AI help, and where should rules decide?

Use AI where document interpretation is needed. It can propose that an abbreviated invoice description refers to a longer purchase-order description, or suggest a receipt when a reference is incomplete. Whether those suggestions are useful needs testing against your own documents.

Require each suggestion to point to the supporting document and line. If several candidates remain plausible, preserve that ambiguity for review.

Use explicit rules for the decision:

  • Check quantities and amounts using validated structured values.
  • Apply only approved unit conversions.
  • Compare prices in the correct currency and on the same pricing basis.
  • Apply the tolerance assigned to that check.
  • Reject allocations that reuse quantities already matched elsewhere.

Do not let the model invent a conversion, choose a tolerance or explain away a failed check. Its confidence in a document pairing is separate from whether that pairing satisfies the rules.

The same question applies to any workflow step; see how to choose AI or rules for workflow steps.

How should partial deliveries work?

Track receipt and invoice allocations against each purchase-order line. Do not treat the purchase order as a single unused balance.

Illustrative worked example: an order contains 100 units at 20 currency units each. The first accepted receipt records 60 units. An invoice arrives for 50 units at the agreed price.

Under a policy that allows invoicing against accepted partial deliveries, the quantity check could pass for those 50 units. That leaves 10 received units available for another invoice and 40 ordered units still awaiting receipt.

If the invoice instead requests payment for 80 units, the workflow should flag the 20 units without receipt support. It should not assume the remaining goods arrived because they were ordered.

Decide beforehand whether an unmatched portion holds the entire invoice or allows an approved partial posting. Make that decision visible to the reviewer.

How should split invoices and multiple receipts work?

Allow the matching record to represent several documents on either side. One receipt may support several invoices, and one invoice line may draw against several receipts.

Illustrative continuation: after the first invoice uses 50 received units, a second receipt adds the remaining 40 ordered units. A second invoice for 50 units could draw against the 10 unused units from the first receipt and the 40 from the second.

Store those allocations explicitly. Recording only that both invoices match the same purchase order would hide whether either reused the same receipt quantity.

Before finalising an allocation, check the latest available balance and reserve it as part of the posting operation. Include simultaneous processing in validation: two invoices must not both consume the same remaining quantity.

Keep duplicate detection separate. A repeated invoice submission should not become a fresh claim merely because it arrives as a different file.

What should happen when a receipt is missing?

Treat a missing receipt as an unresolved condition. An invoice or purchase order is not substitute evidence that goods were accepted.

Use a specific exception reason:

  • No receipt exists for the order.
  • A receipt exists but does not cover this item.
  • The accepted quantity is insufficient.
  • A possible receipt needs confirmation.
  • The receipt record is awaiting completion.

Route the exception to the person responsible for confirming receipt. Keep any suggested document pairing available, but do not manufacture a receipt or silently clear the hold.

If your process permits a documented exception, require the appropriate approval and record its reason. Preserve the distinction between a verified three-way match and an authorised exception.

How should quantities, prices and tolerances be enforced?

Write tolerance rules before enabling automatic progression. Define the field, comparison basis, permitted difference and action when the check fails.

Illustrative policy choices:

FieldExample rule to defineResult outside the rule
Received quantityNo invoicing beyond unused accepted quantityHold for receipt review
Unit priceCompare against the authorised order priceRoute for purchasing review
RoundingAllow only a defined rounding differenceHold for amount review
Additional chargesRequire separate approval where absent from the orderRoute for approval

These are design examples, not recommended business limits.

Avoid one blanket tolerance for the whole invoice. Keep price, quantity and additional-charge checks distinct so that one difference cannot conceal another.

Specify the treatment of damaged goods, rejected quantities and returns. If receipt records change after matching, route the affected allocation for reconciliation.

What should a reviewer see?

Give reviewers the evidence needed to resolve the difference without reconstructing the match.

Show the original invoice line, proposed order line, relevant receipts, previous allocations and the exact failed rule. Display source values alongside any normalised values, such as an approved conversion between packs and individual units.

Offer specific actions: correct an extracted value, choose another candidate, request receipt confirmation, approve a permitted exception or reject a duplicate. Record who acted and why.

Re-run the checks after a correction. An edited quantity should not inherit the earlier result.

Our guide to human approval steps in AI workflows explains how to place review before the action it controls.

What common mistakes should you avoid?

Matching totals without matching lines. Check item identity, quantities and prices separately.

Treating confidence as approval. A confident document suggestion still needs to pass the business rules.

Ignoring previous invoices. Calculate availability from accepted receipts and existing allocations.

Mixing pricing units. A pack price and an individual-unit price need an approved conversion before comparison.

Treating a missing receipt as a reading problem. Better extraction cannot supply evidence that does not exist.

Leaving exceptions without owners. Assign responsibility for each exception type and define what happens while it remains unresolved.

When does this approach need a different design?

Use a different approval path where purchases have no purchase order, goods receipts are not maintained, or service acceptance replaces physical delivery.

Do not force those cases through a goods-receipt workflow. Define the evidence each process requires first.

Start with a bounded process whose records and owners are clear. Which process to automate first with AI offers a framework for choosing that starting point.

What should a pilot prove?

Include clean matches and deliberately difficult cases: partial deliveries, split invoices, missing receipts, duplicates, returns and ambiguous descriptions.

Check whether the workflow proposes the correct lines, applies allocations correctly and stops when a required rule fails. Inspect every case that progresses automatically, including cases where a wrong pairing happens to produce matching totals.

Agree on acceptance criteria before the pilot begins. The decision should rest on observed results from your process, as described in how to run an AI pilot that ends in a decision.

Frequently asked questions

Can AI approve an invoice automatically?

Configure automatic progression only when required checks pass and your approval policy permits the next action. AI confidence alone should never grant approval.

Can one invoice match several purchase orders?

Allow this only if your process supports it. Require an explicit order-line allocation for each invoice line, with separate receipt and balance checks.

What if the invoice arrives before the goods?

Keep it pending receipt confirmation. Re-run matching when the receipt becomes available, without treating early arrival as permission to bypass the check.

Should every difference go to a person?

Differences covered by explicit, approved tolerance rules can follow the authorised path. Send unresolved differences, ambiguous matches and missing evidence for review.


Explore our AI workflow automation service to discuss a matching workflow around your existing records and approval rules.

Ready when you are

Want to talk this through for your business?

Send us the process you are thinking about. You will hear back from an engineer, not a sales team.