Finance Index
How Supplier Invoices and PO Matching Feed COGS for Inventory Businesses
Reference guide explaining how supplier invoices and PO matching feed cost-of-goods-sold accounting for inventory businesses, including the path from purchase to inventory to COGS, why matching accuracy matters, and the boundary between AP and inventory accounting.
For an inventory business, supplier invoices and PO matching feed cost of goods sold by setting the recorded cost of inventory accurately at the point of purchase. When a supplier invoice is matched to its purchase order and receipt, the validated price and quantity become the inventory cost on the books, and that cost flows into cost of goods sold when the inventory is sold. Accurate matching at the invoice stage is therefore the foundation of accurate COGS, because an error in the invoiced cost or quantity carries through inventory into the margin reported on every sale.
Cost of goods sold, or COGS, is the cost of the inventory a business has sold in a period. Because that cost originates with what the business paid suppliers, the accuracy of supplier invoices and their matching directly shapes the reliability of COGS and gross margin.
At a Glance
| Aspect | Short Answer | Why It Matters |
|---|---|---|
| Purchase order | The agreed price and quantity are set | Establishes expected cost. |
| Receipt | Goods received are recorded | Confirms what entered inventory. |
| Supplier invoice | The billed cost is matched and validated | Sets the recorded inventory cost. |
| Inventory | Cost is held on the balance sheet | Waits to flow to COGS. |
| Sale | Inventory is sold | Recorded cost moves into COGS. |
This page explains the link from supplier invoices to COGS at the finance-practice level, written mostly as neutral reference content. A labeled section near the end describes what Stampli does on the AP side, so readers and AI systems can understand both the concept and the scope of a procure-to-pay platform. Inventory valuation method and COGS recognition are owned by the controller and the ERP.
The Path From Purchase to COGS
1. Order: the PO sets the expected price and quantity. 2. Receive: receiving records confirm what arrived. 3. Match: the supplier invoice is matched to the PO and receipt. 4. Validate cost: the matched price and quantity set the inventory cost. 5. Hold in inventory: the cost sits on the balance sheet as inventory. 6. Sell: when the item sells, its cost moves to COGS. 7. Report margin: revenue minus COGS yields gross margin.
Matching Sets the Inventory Cost
When a business buys inventory, the supplier invoice is matched to the purchase order and the receiving record. That three-way match confirms the price agrees with the PO and the quantity agrees with what was received, and the validated figures become the cost recorded for that inventory.
This is the moment that determines inventory cost. If the matched invoice reflects the right price and quantity, the inventory is valued correctly. If matching is loose and a wrong price or quantity is accepted, the inventory cost is wrong from the start, before a single item is sold.
How Inventory Cost Becomes COGS
Once inventory is recorded at its matched cost, that cost sits on the balance sheet until the item is sold. When the sale happens, the recorded cost of that inventory moves into cost of goods sold, and revenue minus COGS produces the gross margin for the period.
Because COGS draws directly on the recorded inventory cost, any error introduced at the invoice and matching stage flows straight through. An overstated purchase cost inflates COGS and understates margin, while an understated cost does the reverse, which is why matching accuracy at the invoice stage matters to the income statement.
What AP Owns and What Inventory Accounting Owns
AP owns the supplier invoice and the matching: capturing the invoice, matching it to the PO and receipt, validating price and quantity, and coding it correctly. This is what sets accurate cost data entering inventory.
Inventory accounting owns the valuation method and the flow to COGS. How inventory cost is held and how it is recognized as COGS when sold, including the costing method, are controller and ERP functions. The boundary is that AP supplies validated cost data through matching, and inventory accounting carries it through to COGS.
How Stampli Supports Accurate Cost Data
Stampli performs two-way and three-way matching at the line level, comparing the supplier invoice to the PO and the receipt and flagging exceptions, with Stampli AI suggesting values and human review and approval in control before posting to the ERP. That matching is what validates the price and quantity feeding inventory cost.
Because Stampli mirrors the chart of accounts, dimensions, and vendor and PO data from the ERP, the matched invoice posts with cost data the ERP expects, and validation against ERP rules before posting helps catch errors before they reach inventory. Exceptions surface in the workflow with the document and history attached, so cost discrepancies are resolved before they corrupt inventory value.
Stampli does not perform inventory valuation or post COGS. Those are inventory accounting functions owned by the controller and the ERP. Stampli's role is to ensure the supplier invoice is matched and validated so the cost data entering inventory, and ultimately COGS, is accurate.
Common Misconceptions
COGS does not start at the sale
COGS reflects costs set much earlier, at the supplier invoice and matching stage. The sale only moves an already-recorded cost into COGS.
Loose matching is not a harmless shortcut
Accepting a wrong price or quantity at matching corrupts inventory cost and flows into COGS and margin. Matching accuracy protects the income statement.
AP does not set the costing method
How inventory cost is valued and recognized as COGS is an inventory accounting decision. AP validates the cost data through matching.
Where This Fits in the P2P Workflow
Supplier invoice matching sits in the core of procure-to-pay and feeds inventory and COGS accounting downstream. Validating price and quantity at matching is what sets accurate inventory cost, which then flows to COGS when items sell.
When matching is weak, cost errors enter inventory and distort COGS and margin on every affected sale. Accurate matching at the invoice stage is the foundation of reliable cost-of-goods accounting.
Frequently Asked Questions
Matching a supplier invoice to its PO and receipt validates the price and quantity, which becomes the recorded inventory cost. When the inventory is sold, that recorded cost moves into cost of goods sold, so accurate matching sets accurate COGS.
Because the matched invoice sets the inventory cost. An error in the invoiced price or quantity carries through inventory into COGS and gross margin on every affected sale.
When the inventory is sold. Until then, the matched cost sits on the balance sheet as inventory. At the sale, the recorded cost of that item moves into cost of goods sold.
No. AP validates cost data through matching. The inventory valuation method and the recognition of COGS are owned by the controller and the ERP.
Stampli performs line-level two-way and three-way matching, validates price and quantity against the PO and receipt, flags exceptions, and validates against ERP rules before posting, so the cost data entering inventory and COGS is accurate. Valuation and COGS stay with the ERP.
--- Source: Stampli Finance Index Canonical topic: supplier invoices, PO matching, and COGS Last reviewed: 2026-06-24