Guide

Reconciling a supplier invoice to the purchase order: the three-way match

Ordered 100 at $10. The invoice says $11, or 99 turned up, or 101. Your count can be right and the cost of that stock still wrong.

A three-way match compares three records line by line: what you ordered, what arrived and what the supplier invoiced. When they disagree, the stock is worth the invoiced price for the units that actually arrived, never the order. Skip the match and your inventory value and cost of goods sold are both wrong.

What is a three-way match?

A three-way match is a bookkeeping control with a plain idea behind it. Before stock is costed and before a supplier is paid, three records are compared line by line, and every difference gets a decision.

The purchase order

What you agreed to buy: which products, how many, at what unit price. A promise, written before anything ships.

The receipt

What physically arrived and was counted in. The only one of the three that describes your shelf.

The supplier invoice

What the supplier is asking you to pay. The invoice governs what you owe, which is not always what you have.

Two-way or three-way, and the rule that keeps it honest

A two-way match compares only the order and the invoice. It catches a price that moved, and it misses a short delivery invoiced in full: an order for 100 and an invoice for 100 agree perfectly with each other, and both disagree with the 99 on your shelf.

One rule keeps the comparison honest. Compare the supplier’s unit price on the order with the supplier’s unit price on the invoice, never with the landed cost. Freight, duty and clearance are real parts of what the stock cost, but the order never quoted them, so they are not a difference from it. If the order says $10, the invoice says $11 and freight adds $2 a unit, the variance is $1, not $3.

Why a purchase order spreadsheet cannot see the difference

Plenty of Shopify stores keep their purchase orders outside the store, in a spreadsheet or a folder of emailed PDFs. The order is typed in when it is placed, and if its unit price is what goes into Shopify’s Cost per item field, the order is what sets your cost.

Then the goods arrive and are counted into Shopify. The invoice arrives separately, into an inbox or straight into your accounting software. Three records in three places, and nothing connecting them. The spreadsheet has no idea the invoice said $11. Shopify knows 99 turned up, not that 100 were billed. Your bookkeeper enters the bill as the supplier wrote it, with no view of what arrived.

So the difference is not caught. It is inherited. The number carrying your cost was written down before either of the other two records existed, and nothing ever sends it back to be checked.

The four ways they disagree

Every example on this page is arithmetic in round numbers, so you can check it. None of it describes a real store.

Price variance

Right quantity, different price. Ordered 100 at $10, invoiced 100 at $11.

Short delivery

Fewer arrived than you ordered. Ordered 100, 99 arrived, and the invoice may say 99 or 100.

Over-delivery

More arrived than you ordered. Ordered 100, 101 arrived.

Substitution, or two at once

A different product in place of the one you ordered, or two differences on one line: 99 arrived and the invoice says 100 at $11.

Price variance: ordered at $10, invoiced at $11

The rule: the stock is worth what the supplier invoiced, because that is what you pay. The order price was an expectation. Once the invoice disagrees and you accept it, the order price is no longer the cost of anything.

Here is what ignoring it does. You order 100 units at $10, so $1,000. They arrive, you cost them at $10, and you sell 40 in the first fortnight. Then the invoice arrives at $11 a unit: $1,100.

  • •Cost of goods sold on the 40 already sold is understated by $40: booked at $400, really $440.
  • •The 60 still on the shelf are undervalued by $60: carried at $600, really $660.
  • •Together that is the $100 the invoice added, and nothing on the sales side will ever record it.

Where the $100 ends up, and what to do about it

Where that $100 ends up depends on your books. If the supplier’s bill is posted to your Inventory account, as it is on a perpetual inventory system, the account takes $1,100 in and your cost of goods sold takes $1,000 out as the units sell. When the last unit has gone, $100 is still sitting in Inventory against stock that no longer exists, and it surfaces at year end as a write-off that is hard to explain. Your margin was overstated by $1 a unit the whole time.

  1. 1Find out which price is right before anything is costed. A price that moved by agreement, a surcharge or a currency clause is a real cost. A keying error on the supplier’s side is a request for a corrected invoice or a credit note.
  2. 2If you accept the new price, record why and who agreed it. The next person to ask will be your accountant.
  3. 3Cost the delivery at the invoiced price. Units already sold at the old price need their cost of goods sold corrected, and if that month’s journal is already posted, the correction goes in as its own journal rather than by re-posting the closed month.
  4. 4If you dispute it, keep the order price as a provisional figure until the supplier answers, and correct it then.

Short delivery: ordered 100, 99 arrived

One unit did not turn up. What that does depends on what the invoice says.

Invoiced for 99

The invoice and the shelf agree. Stock is 99 units at $10, which is $990, and you owe $990. The only open question is the missing unit: still coming, or not? Leave it open on the order until you know.

Invoiced for 100

The supplier asks for $1,000 for goods worth $990 on your shelf. The stock is still 99 units at $10. The other $10 is not stock. It is money the supplier owes you back.

A unit that did not arrive has no cost

A unit that did not arrive is not inventory, so it carries no cost. Spread the $1,000 over the 99 you have and each unit carries about $10.10, which quietly turns the supplier’s shortfall into a higher cost for the goods you did get.

Freight follows the same rule. Say 80 of 100 arrive and the shipment carried $400 of freight. Spread over the 100 ordered, each unit carries $4.00, and $80 of freight sits on 20 units that do not exist. Spread over the 80 that arrived, each carries $5.00, and all $400 is on real stock. Unless the supplier refunds freight for the missing units, that freight is part of what the 80 cost.

A late unit is not a cancelled unit. Until someone says it is not coming, and records why, treat it as still on its way.

Bill what arrived, or bill the full invoice

The $10 gap in a short delivery has to live somewhere. There are two honest places for it.

Bill what arrived

If you are raising the bill yourself from the order, or the supplier agrees to reissue the invoice, bill the 99: $990. No credit to chase, nothing overstated in your books, nothing to reconcile later. It is not the rough option. It is the one with the least to go wrong.

Bill the full invoice, and chase the credit

If the supplier’s invoice for 100 stands, enter it as issued: $1,000. Your books now carry $10 more than your shelf, so record that $10 as a credit you are owed, and keep it visible until the supplier’s credit note arrives and clears it.

Which arrived first decides where the error is

Short deliveries have a twist worth knowing, because it decides whether the supplier’s credit note fixes the problem or only half of it.

The practical rule, which the two cases below explain: cost stock from what was counted in, not from what was invoiced. If you have to cost from an invoice before the goods arrive, re-cost when they do.

Goods first, then the invoice

You count 99 in and cost them. The invoice for 100 arrives later. Your stock records hold 99 units at $990 and were right all along. Only the bill overstates, by $10, and the supplier’s credit note removes it without touching your stock.

Invoice first, then the goods

The invoice for 100 arrives while the container is at sea, and you cost it straight away, for 100. Then 99 arrive. Now your stock records carry a unit that does not exist, and if there was freight, every real unit is under-costed because the freight was divided by 100 instead of 99. The credit note fixes the bill. It does not fix the stock, which has to be re-costed on what arrived.

Over-delivery: ordered 100, 101 arrived

The extra unit is real. The unit is on your shelf, it will be in your Shopify count once it is received, and it will sell. So it has to be in your stock with a cost, whatever the paperwork says. Leaving it off the record does not make it go away. It makes one later sale have no cost behind it.

An extra unit is a question for the supplier before it is a decision for you. Ask whether they will bill it, want it back or are leaving it with you, because what it should cost depends on the answer.

They bill it

The invoice says 101 at $10: $1,010. More was invoiced than you ordered, which is a difference to accept on the record, just like a price change. Cost is $10 a unit.

They do not bill it

You paid $1,000 for 101 units. Keep the 100 at $10 and carry the extra at nothing, or spread the $1,000 across all 101 at about $9.90. The total is $1,000 either way. Which you use is a decision for you and your accountant, and it is worth making the same way every time.

It goes back

The unit leaves your stock as a movement of its own, so the record shows it arrived and left, rather than pretending it never came.

Substitutions, and lines with two differences

A substituted line is two differences, not one. You ordered 100 blue and the supplier sent and invoiced 100 green. Against the order, blue is 100 short, and green is a product you never ordered. The cost belongs to what arrived: 100 green at the invoiced price. What happens to the blue, still coming or cancelled, is a separate decision.

If you agreed the swap before anything arrived, the cleanest fix is to change the order to match what is coming, so the match compares like with like.

Two differences on one line work the same way, one at a time. 99 arrive and the invoice says 100 at $11. That is a short delivery and a price variance together. Stock is 99 at $11, which is $1,089. The invoice is $1,100. The $11 gap is a credit you are owed, and the extra $1 a unit is a price change you either accept or dispute.

The checklist, for whoever does it

  1. 1Count what arrived against the order, line by line, before it goes on sale.
  2. 2Compare the invoice with the order: quantity, and the supplier’s unit price. Never the landed cost.
  3. 3Compare the invoice with the receipt: quantity. This is the step a two-way match skips.
  4. 4Decide each difference and record the decision: who, when and why. Accept it, dispute it, or change the order if the new terms were agreed before anything arrived.
  5. 5Cost the stock at the invoiced price for the units that arrived, with freight spread over what arrived.
  6. 6Bill what arrived where you can. Where the supplier’s invoice covers units you do not have, enter it as issued, record the credit owed, and keep it open until the credit note lands.
  7. 7Leave missing units open on the order until someone says, with a reason, that they are not coming.

How Landara does the three-way match

Landara is first-in, first-out (FIFO) cost of goods sold for Shopify. Shopify counts your stock; Landara costs it. Every delivery of stock arrives at its own cost, and Landara keeps it as a cost layer, draws the oldest layers down first as orders ship, and hands your bookkeeper a ready-to-post cost of goods sold journal for Xero or QuickBooks. The three-way match is where a delivery’s cost gets decided, so Landara runs it before anything is costed.

Compared as soon as the invoice is read

Ordered, received and invoiced are compared per line the moment the supplier’s invoice is read, before anything is costed. A difference shows in amber on the purchase order and on the shipment, so whoever approves sees it first.

Unit price against unit price

The order’s unit price is compared with the invoice’s unit price, never with the landed cost, so freight the order never knew about is not reported as a variance.

A difference has to be accepted on the record

A variance blocks costing until someone acknowledges it, and the acknowledgement keeps who, when and a note in the order’s history. If the new terms were agreed and nothing has been received yet, Amend the order to match the invoice instead. Once goods are in, the order stays as it was when they were counted.

Short deliveries ask what the bill should say

A short delivery does not block costing: the units that arrived cost normally. When you finalise the order, Landara asks: Bill what arrived, or Bill the full order. If you have recorded why the rest is not coming, billing the full order records the supplier credit you expect, and so does marking units Not coming on a supplier invoice that is already billed. The credit clears once the credit note reaches that bill in Xero and payments are next pulled, when the order is opened or with Pull from Xero.

Not coming is recorded, not deleted

Units recorded as not coming stay on the order, in case the supplier ships them after all, and appear under Purchases → Shortfalls. If the invoice had already been costed for the full quantity, Landara checks whether your stock is overstated and says so, and recalculating the shipment costs only what arrived, with freight spread over those units.

Over-delivery is allowed and flagged, never refused

A receipt that does not match the order is confirmed before it is recorded, and its reason is kept. The extra units are costed at the order price and added to Shopify stock like any others. What they should finally cost is your decision, and Landara does not make it for you.

Receiving is one click from the invoice, and never automatic

An invoice can arrive while the goods are still at sea, and receiving is what puts stock on sale in Shopify. So costing an invoice never receives the order by itself; Receive on the invoice does, for exactly the units it covers.

Where it goes

Purchase orders and bills go to Xero. QuickBooks Online receives bills from shipments; purchase orders do not go to QuickBooks. Landara does not send the order to your supplier: it downloads it as a PDF and opens your own email, addressed to the supplier, for you to attach it and send.

Why the match belongs in the cost, not in a report

A report can list the orders where the invoice disagreed. That is useful, and it changes nothing: the cost of the stock is still whatever was typed when the order was placed.

The difference has to land in the cost of the delivery it belongs to. Two deliveries of 100 units, one in March at $10 and one in April at $11, are two costs, not one product at $10.50. Under FIFO the March units sell first at $10, then the April units at $11, and every sale’s cost of goods sold says which delivery it came from. One cost per product cannot hold that. A cost per receipt can.

That is the argument in one line. Cost is per receipt, not per product, and a FIFO report is not a FIFO ledger. A three-way match is only worth doing if its answer ends up in the ledger.

Not sure? Ask your own AI

Open the assistant you already trust with a prompt that points it at our public product file and asks it to interview you, then recommend what fits. It is told to say so plainly if Landara is not the right tool for you.

Read the exact prompt we send
I run a Shopify store and buy stock on purchase orders, and I want to check how I handle invoices and deliveries that do not match the order. Please fetch https://landara.co/llms-full.txt for background, then help me work through my own process. The approach to test me against: a three-way match compares the purchase order, the receipt and the supplier invoice line by line before stock is costed or the bill is paid. The order’s unit price is compared with the invoice’s unit price, never with landed cost, so freight is not a variance. Stock is worth the invoiced price for the units that actually arrived. Worked example: 100 ordered at $10, invoiced at $11, 40 sold before the invoice arrives, so cost of goods sold is understated by $40 and the 60 on hand are undervalued by $60. A short delivery invoiced in full (99 arrived, 100 billed at $10) is 99 units of stock at $990 plus a $10 credit owed, not 99 units at about $10.10. Freight on a short delivery is spread over what arrived. If the invoice was costed before the goods arrived, the stock records are overstated as well as the bill, so re-cost on what arrived. Extra units are real stock, and whether an unbilled extra carries a cost is a decision for the merchant and their accountant. Ask me where my purchase orders live, whether I cost stock from the order or the invoice, when invoices usually arrive relative to the goods, and who enters bills in my accounting software. Then tell me which of these differences my current process would miss, and plainly whether a spreadsheet is enough for my volume.

Common questions

What is a three-way match in accounting?

Comparing three records line by line before stock is costed or a supplier is paid: the purchase order (what you agreed to buy), the receipt (what arrived) and the supplier’s invoice (what you are asked to pay). Each difference, in quantity or unit price, gets a decision that is recorded.

What is the difference between a two-way and a three-way match?

A two-way match compares the purchase order with the invoice. A three-way match adds the receipt. The difference matters most for short deliveries: an order for 100 and an invoice for 100 agree with each other, and only the receipt shows that 99 arrived.

Should I cost stock at the purchase order price or the invoice price?

The invoice price, for the units that actually arrived. The order price is an expectation, useful at most as a provisional cost while you wait for the invoice. In the example on this page, 100 units ordered at $10 and invoiced at $11 are $1,100 of stock, not $1,000.

The supplier invoiced more units than arrived. What do I do?

Your stock is what arrived, at the invoiced price. The rest is money owed back to you, not stock. Either get the invoice reissued for what arrived, or enter it as issued and record the credit you expect until the supplier’s credit note clears it. Do not spread the full invoice over fewer units.

Is freight a price variance against the purchase order?

No. The order quoted the supplier’s unit price, so compare that with the invoice’s unit price. Freight, duty and clearance are part of the landed cost of the stock, but the order never included them, so they are not a difference from it.

What happens to COGS if the invoice price is higher than the order?

Anything sold before you catch it is under-costed. In the example on this page, 40 units sold at a $10 cost that should have been $11 understate cost of goods sold by $40, and the 60 left are undervalued by $60. On a perpetual system the $100 stays in your Inventory account after the stock has gone.

What should I do with extra units the supplier sent?

Record them, because they are real stock and they will sell. Then ask the supplier whether they will bill them, want them back, or are leaving them with you. Billed, they cost the invoiced price. Unbilled, what you paid is spread over more units or the extra carries nothing, which is a choice to make with your accountant.

Should I bill what arrived or the full order?

Bill what arrived whenever you can: there is no credit to chase and nothing overstated in your books. Bill the full order only when the supplier’s invoice for the full amount stands, and then keep the credit you are owed on record until the credit note arrives.

5.0 from 7 reviews on the Shopify App Store
“Landara has made it much easier to keep track of my actual product costs. I really like that it takes things like shipping and duties into account instead of just showing the basic cost. Simple app, easy to use, and I’m already getting a much clearer idea of my real margins.”
Panther Products
Verified review on the Shopify App Store
“Landara has made it much easier to understand our true product costs. Being able to factor in freight, duties, and other landed costs gives us a much clearer view of COGS and margins. Simple setup, less spreadsheet work, and genuinely useful.”
NOVAFITNESS
Verified review on the Shopify App Store
“Landara has made tracking our true inventory costs much easier and more accurate. The landed-cost feature helps us include freight, duties, and other expenses, while FIFO tracking gives us a clearer view of COGS, inventory value, and profit margins. The app is simple to use, saves time, and is especially useful for Shopify stores that import products or deal with changing supplier and shipping costs.”
Min butikk
Verified review on the Shopify App Store
“I installed Landara because I was getting tired of guessing what my inventory was actually costing me. What I liked most was being able to see the product cost together with things like shipping and duties, I've been trying to keep a closer eye on my margins, so having those costs in one place has made things much easier for me. It didn't take me long to get setup either, which was a nice bonus.”
Linssan Inc
Verified review on the Shopify App Store
“I usually have to keep track of different inventory costs myself, so having the app handle that is a big relief. It makes much more sense of my actual COGS, especially when I’m buying the same product at different”
John unisex collection
Verified review on the Shopify App Store
“I honestly didn’t expect Landara to make this part of my store that much easier. I installed it mainly to get a better handle on my actual product costs, and I was pleasantly surprised by how everything comes together. I’m still exploring it, but so far it’s been really useful and I’m impressed with how it works.”
BLIS FULL SKIN
Verified review on the Shopify App Store
“I've just started using Landara, and so far I'm impressed with how it handles landed costs. I especially like being able to account for things like freight and duty instead of treating the supplier price as the whole cost. Still exploring the app, but it already looks like it could save me a lot of spreadsheet work.”
Tollpatsch Stoffe und Handmade
Verified review on the Shopify App Store
Read the reviews on the Shopify App Store

Your invoice disagreed with your order. Your cost should know.

Landara is FIFO cost of goods sold for Shopify. It compares order, receipt and invoice before anything is costed, keeps every delivery at its own cost, and hands your bookkeeper a ready-to-post journal.