SHARED

Cross-document control

Three-Way Document Matching and Shipment Reconciliation

Compare purchase orders, invoices and goods receipts at header and line level, then reconcile transport evidence across Bills of Lading, packing lists and freight invoices. GainingDocx preserves each source value and reports discrepancies for review.

Documents can be individually correct and still disagree with one another. Shipment Check groups related records and compares references, parties, routes, container numbers, quantities, weights, currency and totals across the document set.

Differences become prioritized discrepancies so teams can focus on what may delay clearance, payment or delivery rather than manually comparing pages side by side.

Short answer

What matching compares

Documents grouped as one shipment are compared field by field and line by line: parties, references, routing, container numbers, quantities, weights, currency, terms and totals. Differences become prioritised discrepancies, ordered by whether they delay clearance, block payment or affect delivery — rather than by which document they appeared on.

  • Header and line-level comparison
  • Classic three-way plus transport evidence
  • Every source value preserved, not merged
  • Findings prioritised by operational impact

How Three-Way Matching Works

  1. 01

    Add documents to the same shipment.

  2. 02

    Run cross-document matching.

  3. 03

    Resolve or document each discrepancy.

Individually correct, collectively wrong

Most document problems are not errors on a single page. Every document in a shipment can be internally valid and pass every structural check, while disagreeing with the others about what was shipped. That is the failure mode that generates customs holds, letter-of-credit rejections, payment disputes and misdeliveries.

Comparing documents by eye is slow, tedious and unreliable, which means in practice it happens on exception rather than routinely — usually after the problem has already surfaced. The value of automated matching is that it happens on every shipment at the point the documents arrive, when the difference is still cheap to fix.

The comparisons that run

What is compared across a shipment set
DimensionCompared acrossTypical finding
PartiesInvoice, packing list, B/L, POConsignee updated on one document only
ReferencesAll documentsPO number changed late and not carried through
Goods descriptionInvoice, packing list, B/LDescription written for customs on one, for the warehouse on the other
QuantitiesPO, invoice, packing list, receiptInvoiced above received, or short shipment not reflected
Unit pricesPO, invoicePrice variance beyond tolerance
WeightsPacking list, B/L or AWB, VGMNet above gross, or a total that does not reconcile
PackagesPacking list, B/L, arrival noticePackage count differing between declared and carried
Containers and sealsPacking list, B/L, arrival noticeA container on one document and not the other
RoutingBooking, B/L, arrival noticeDischarge port changed without an agreed amendment
Currency and termsPO, invoiceIncoterm or currency differing from what was agreed
DatesAll documentsShipment date after a credit's latest shipment date

Three-way matching, extended

The classic three-way match compares purchase order, invoice and goods receipt: was it ordered, was it received, is the price agreed. It is a sound control and it is incomplete for international trade, because it never looks at what the carrier actually received.

Adding the transport document closes that gap. A shipment can match perfectly across PO, invoice and receipt while the Bill of Lading shows a different consignee, a different package count or a weight that cannot be reconciled — which is exactly the situation where a payment goes out against goods that did not arrive as described.

  • Purchase order — the baseline of what was agreed
  • Commercial invoice — what is being charged
  • Goods receipt — what actually arrived and what was accepted
  • Packing list — what was declared as packed
  • Bill of Lading or air waybill — what the carrier received
  • Freight invoice — what the movement was billed at

A missing document is not a pass

Where a required evidence role is absent — no goods receipt, no packing list — the match reports as incomplete rather than approving by default. An approval issued without the evidence is an assumption dressed as a control, and it is the specific failure that over-billing relies on.

Every source value is preserved

Matching does not merge documents into a single 'best' record. Each document keeps its own values, and the discrepancy records which document said what. That matters for two reasons: you need to know which party to raise the difference with, and you need to be able to show the evidence when you do.

It also means correcting a document is a deliberate act against a specific source, rather than an edit to a merged record whose provenance has already been lost.

Working a discrepancy list

  1. 1Start at the top — findings are ordered by operational impact, not by document or page order.
  2. 2For each finding, read both values and their sources before deciding which document is wrong.
  3. 3Correct at source: the party that issued the incorrect document has to reissue or amend it, not you downstream.
  4. 4Where a difference is legitimate — a partial shipment, an agreed substitution — record the reason so the same finding is not re-investigated next time.
  5. 5Escalate anything affecting a letter of credit before shipment, because a credit discrepancy after presentation puts payment at the buyer's discretion.
  6. 6Export the discrepancy report as evidence for the conversation with the counterparty.

Three-Way Matching FAQ

What teams ask before relying on shipment document matching in a live operation.

What is three-way matching?

Comparing the purchase order, the supplier invoice and the goods receipt before approving payment: was it ordered, was it received, and is the price as agreed. Any of the three failing should stop payment. In international trade it is worth extending to the transport document, which records what the carrier actually received.

Which documents can be matched?

Purchase orders, commercial invoices, packing lists, goods receipts, bills of lading, sea waybills, air waybills, booking confirmations, arrival notices and freight invoices. Any documents grouped as one shipment are compared; the more of the set present, the more comparisons are possible.

How are documents grouped into a shipment?

By shared references — B/L number, booking number, invoice number, purchase order, container numbers — found in the extracted data. Documents forwarded together by email are grouped automatically, and grouping can be adjusted manually where a reference is missing or a shipment spans several deliveries.

Does matching change my documents?

No. Each document keeps its own extracted values, and a discrepancy records which document stated what. Nothing is merged into a single record, because knowing which party to raise a difference with — and being able to show the evidence — depends on the provenance being preserved.

How are discrepancies prioritised?

By operational impact rather than by document order: what blocks customs clearance first, then what blocks payment, then what affects delivery, then informational differences. A twenty-item list ordered by page position gets ignored; the same list ordered by consequence gets worked.

What tolerances are applied?

Small bands on weights and amounts, because printed totals routinely round differently from their components and flagging every rounding difference buries the real findings. Where a variance exceeds the band, both figures and the size of the gap are shown so the decision is made on the number rather than on a binary flag.

Can it match when the supplier uses different item codes?

Yes. Line matching uses several signals — item code, description, quantity and price — rather than a single key, so a supplier's own part numbers can be matched against your item lines. Where the correspondence is genuinely ambiguous, the lines are reported unmatched for a human to resolve rather than paired on a weak similarity.

What if a required document is missing?

The match reports as incomplete rather than passing. This is deliberate: a three-way match that approves because the goods receipt was never uploaded is not a control at all. The missing evidence role is named so it is clear what is needed to complete the check.

Does it check against a letter of credit?

Where the credit's requirements are recorded, the documents can be compared against them — description wording, amount and currency, latest shipment date, consignee, required documents. Bank examination is literal, so catching a wording difference before presentation is materially cheaper than a discrepancy after.

Can I export the discrepancy report?

Yes, as a PDF discrepancy report showing each finding with both source values and the documents they came from. That report is what makes the conversation with a supplier, forwarder or carrier evidence-based rather than an assertion, and it is worth attaching to the shipment file whether or not the finding is disputed.

How long does matching take?

It runs as soon as the documents in a group have been extracted, so the discrepancy list is available within the same session rather than as a separate batch process. Adding a further document to an existing shipment re-runs the comparison against the whole set.

Does it work for partial shipments?

Yes, but the partial nature has to be visible. Where an invoice covers a full order and the packing list covers one of three shipments, the quantity difference is a legitimate one — recording the reason against the finding stops it being re-investigated on every subsequent document that arrives.

Which fields are compared?

Available comparisons include document references, parties, ports, containers, quantities, weights, currencies, amounts and shipment dates.

Does matching overwrite source data?

No. Matching reports agreements and differences while preserving the values extracted from each source document.

Can it support three-way matching?

Yes. Purchase orders, commercial invoices and goods receipts can be linked and checked at header and line level when the necessary references are present.

Related tools, templates and guides