Automate landed cost per SKU for every inbound shipment
Updated · By Ecomsellertool editorial team
To automate landed cost, collect every cost for one shipment: the supplier invoice, freight, duty from the customs entry, brokerage, insurance and port or drayage charges. Rules spread each cost across the SKUs on that shipment by the basis your accountant chose, such as volume for freight and value for insurance, divide by received units, and send a per-SKU landed-cost table to a person to approve.
- Landed cost per unit = (supplier cost of the line + its share of every inbound cost) ÷ units received. Each cost type gets one allocation basis: value, units, weight or volume.
- Duty is usually not spread at all: the customs entry gives it per tariff line, so it goes straight to the SKUs on that line.
- For fiscal year 2027, from October 1, 2026, CBP's merchandise processing fee on formal entries stays at 0.3464% of value, with a $34.58 minimum and a $670.86 maximum (checked December 4, 2026).
- Shopify tells resellers to enter the price paid to the manufacturer as cost per item, excluding taxes, shipping or other costs, and records that cost on each order when it is created (checked December 4, 2026).
- Intuit's landed cost tool is documented for QuickBooks Desktop Enterprise Platinum and Diamond with Advanced Inventory (checked December 4, 2026).
- Rules collect, allocate and check. Your accountant decides what is capitalized and on which basis; a person approves the table and every late-invoice true-up.
The step map: who runs each step
Trigger: A shipment is received in full and its supplier invoice, freight invoice and customs entry are in, or a late cost invoice arrives for a shipment already costed.
| Step | What happens | Who runs it |
|---|---|---|
| 1 | Every cost document for the shipment is collected and linked to it: the supplier invoice and PO lines, the freight forwarder's invoice, the customs broker's invoice with the entry summary, the insurance certificate and port or drayage bills. | Rule |
| 2 | Line details are read from PDF invoices into fields (amount, cost type, shipment or container reference, and duty per tariff line), with a confidence score; low-confidence lines go to a person. | AI model |
| 3 | Each cost line is tagged with its cost type, and each type is checked against the approved basis table: capitalize or expense, and value, units, weight or volume. A cost type with no rule stops the shipment. | Rule |
| 4 | Received units per SKU are taken from the receiving record, and weight and volume per unit from the product master. Every cost is spread across the SKUs by its basis, with rounding cents placed on the largest line so each cost adds back to its invoice. | Rule |
| 5 | The per-SKU table is built: supplier cost, each cost share, total and landed cost per unit, compared with the last approved cost. SKUs that moved more than your threshold are flagged. | Rule |
| 6 | The bookkeeper or accountant reviews the table, the flags and any cost lines with no rule, then approves it or sends it back. | Person |
| 7 | The approved costs are saved with an effective date and the shipment reference, sent to the inventory system and the month-end cost table, and any invoice that arrives later is queued as a true-up for a person to approve. | Rule |
5 rule steps · 1 AI model step · 1 person step. A rule follows fixed logic you approve; an AI model handles messy input and its output is checked by rules; a person makes the calls listed below.
What stays with a person
- Which costs are capitalized into inventory and which are expensed, decided by your accountant
- The allocation basis for each cost type, decided once and kept consistent
- Approving each shipment's landed-cost table before it is used
- Late invoices: how the true-up is split between stock on hand and units already sold
- Duty questions, classification and refunds, which go to your customs broker
Which tools can run it
- A spreadsheet per shipment with the basis table built in, for a few shipments a month
- An inventory or ERP app with landed cost, if it supports the bases your accountant wants
- Zapier, Make or n8n with an AI model step to read the invoices, writing to a cost table with an approval step
- Custom code on your accounts, for many suppliers, consolidated containers, late invoices and cost history
Systems it connects
- Purchase orders and receiving records
- Supplier, freight forwarder and customs broker invoices
- Product master (weight and volume per unit)
- Landed-cost table
- Shopify or your inventory system
- QuickBooks Online or Xero
- Approval queue in Slack or email
Build size: Medium
The arithmetic is short; the work is linking every invoice to the right shipment and agreeing the bases with your accountant.
A container arrives with three products on it. The supplier invoice is one document, the freight forwarder sends another, the customs broker a third, and the trucking company a fourth, sometimes weeks later. Until someone spreads those costs across the SKUs, nobody knows what one unit really cost, so margins, reorder decisions and month-end cost of goods sold all run on a guess. This recipe automates that per-shipment table, with your accountant setting the rules and a person approving every table. It is one page of our automation library.
Which allocation basis should each landed cost use?
Pick one basis per cost type, write it down with your accountant, and never change it shipment by shipment. The rule of thumb: allocate a cost by whatever the vendor charged you for. A cost with no physical driver gets value or units, whichever your accountant prefers, and stays that way.
| Cost type | Sensible basis | Why | Who decides |
|---|---|---|---|
| Supplier price | None: direct, from the PO line and supplier invoice | Each SKU already has its own price | Purchasing confirms the price; the invoice matches the PO |
| Ocean freight (LCL or full container) | Volume (CBM) | Space in the container is what you pay for | Accountant sets the basis; operations keeps CBM per unit in the product master |
| Air or courier freight | Chargeable weight | Air carriers bill on weight or dimensional weight | Accountant; operations supplies weights |
| Customs duty | None: direct, per tariff line on the customs entry | Each product carries its own rate on its own value | Customs broker gives line detail; accountant confirms it is capitalized |
| Merchandise processing fee and similar entry fees | Value | The fee is a percentage of the entered value | Accountant |
| Customs brokerage fee | Value, or units | A flat fee per entry with no physical driver | Accountant picks one and keeps it |
| Cargo insurance | Value | The premium is priced on the value insured | Accountant |
| Port, terminal and drayage | Weight, or volume | Trucking and handling are priced by container or weight | Accountant; operations supplies weights |
| Inspection or labeling per unit | Units | Charged per unit handled | Operations confirms the count |
| Demurrage, storage after receipt, outbound shipping | Usually expensed, not allocated | Often a cost of a delay or of selling, not of getting the goods in | Accountant decides capitalize or expense |
Two rules make this table safe to automate. First, every cost line on every invoice must map to one row; an unknown cost type stops the shipment rather than landing on a default. Second, weight and volume per unit live in your product master and are checked against the packing list, because a wrong carton size quietly moves freight from one SKU to another for every shipment after it.
What does a worked landed-cost example look like?
Here is one illustrative ocean shipment with three SKUs. It is not client data, and the duty rates are assumed for the arithmetic, not real tariff rates. Shared costs are spread by the bases in the table above: freight by volume, port and drayage by weight, and brokerage, the processing fee and insurance by value.
| SKU (illustrative) | Units received | Supplier cost | Value share | Volume | Weight |
|---|---|---|---|---|---|
| Ceramic mug set | 4,000 at $6.00 | $24,000 | 48% | 12 CBM | 2,000 kg |
| Glass carafe | 2,000 at $9.00 | $18,000 | 36% | 12 CBM | 2,000 kg |
| Bamboo coaster set | 4,000 at $2.00 | $8,000 | 16% | 6 CBM | 1,000 kg |
| Shipment | 10,000 | $50,000 | 100% | 30 CBM | 5,000 kg |
The inbound costs are ocean freight of $3,000, duty of $2,960 from the entry (assumed rates of 6%, 4% and 10% on each line's value), a customs broker invoice of $175.00 brokerage plus a $173.20 processing fee, insurance of $151.80 and drayage of $800. The processing fee is 0.3464% of an assumed $50,000 entered value, which sits between the minimum and maximum in CBP's fiscal year 2027 user fee notice: $34.58 and $670.86 from October 1, 2026, with the 0.3464% rate unchanged (checked December 4, 2026). The three value-based lines add to exactly $500.00.
| Cost line (illustrative) | Basis | Mug set | Carafe | Coaster set | Total |
|---|---|---|---|---|---|
| Supplier cost | Direct | $24,000.00 | $18,000.00 | $8,000.00 | $50,000.00 |
| Ocean freight | Volume, $100 per CBM | $1,200.00 | $1,200.00 | $600.00 | $3,000.00 |
| Duty | Direct per line | $1,440.00 | $720.00 | $800.00 | $2,960.00 |
| Brokerage, processing fee, insurance | Value | $240.00 | $180.00 | $80.00 | $500.00 |
| Drayage | Weight, $0.16 per kg | $320.00 | $320.00 | $160.00 | $800.00 |
| Total landed cost | $27,200.00 | $20,420.00 | $9,640.00 | $57,260.00 | |
| Landed cost per unit | ÷ units received | $6.80 | $10.21 | $2.41 |
Check it the way the workflow does. Each column adds down: $24,000 + $1,200 + $1,440 + $240 + $320 = $27,200, divided by 4,000 mug sets is $6.80. Each row adds across to its invoice, and the totals add to $57,260, which is $50,000 of goods plus $7,260 of inbound costs. Multiply back: 4,000 × $6.80 + 2,000 × $10.21 + 4,000 × $2.41 = $57,260.
The basis matters. If freight were spread by value instead of volume, the carafe's freight would fall from $1,200 to $1,080 and the mug set's would rise from $1,200 to $1,440, moving the carafe's unit cost by 6 cents. The carafe is the bulky item, so volume is the honest basis here. When a split does not divide to the cent, the workflow puts the rounding cent on the largest line, so every cost still adds back to its invoice exactly.
Where does each cost come from, and what stops the run?
Each cost has one source document, and each document has to point at the shipment. Most allocation errors are a freight invoice charged to the wrong container, or units counted from the PO instead of the receipt.
| Input | Where it comes from | What stops the run |
|---|---|---|
| Supplier cost per line | PO lines and the supplier invoice, matched by our supplier invoices to bills recipe | Invoice price differs from the PO beyond tolerance |
| Units received | The receiving record, after our PO receiving discrepancies recipe sorts shorts, overs and damage | Shipment not fully received, or a variance still open |
| Freight, port and drayage | Forwarder and trucking invoices, with the container or bill of lading number | Invoice with no shipment reference |
| Duty and entry fees | The broker's invoice and entry summary, duty per tariff line | Duty total that does not match the sum of the lines |
| Weight and volume per unit | The product master, checked against the packing list | Missing or changed carton data |
Shopify can hold part of this. Its receiving guide for purchase orders lets you add cost adjustments such as Shipping amount or Customs duties to a shipment, and a cost summary compares the agreed purchase order cost with the actual cost of receiving (checked December 4, 2026). The page does not say how those adjustments are spread across items, so the per-SKU split still needs your own rule.
Units are the divisor, so use accepted units, not ordered units. If 40 carafes arrive broken and the supplier credits them, the carafe line's supplier cost and its unit count both change, and the landed cost per unit is recomputed before anyone approves the table.
Where does the approved table go, and how do late invoices work?
The approved table is the single source of unit cost. It feeds the month-end COGS and inventory journal entry and our supplier cost change alerts, which recompute margin per channel when a SKU's landed cost moves. Each row carries an effective date and the shipment reference, so anyone can trace a unit cost back to its invoices. Once margin per unit is right, contribution margin per channel is a short step further.
Shopify is a reporting choice, not the ledger. Its cost per item page tells resellers to enter the price paid to the manufacturer, excluding taxes, shipping or other costs, and says the cost is recorded on an order when the order is created (checked December 4, 2026). If you want Shopify's profit reports on landed cost instead, agree that with your accountant and update the field on the table's effective date.
Late invoices are normal: a drayage bill or a duty adjustment can arrive after the goods are selling. The workflow spreads the late cost on the same basis and shows the change per unit. For example, a $300 storage charge spread by volume would add $120 to the mug set, 3 cents a unit. If 1,000 of the 4,000 mug sets had sold, $30 relates to sold units and $90 to stock on hand. Your accountant decides how each part is booked, or whether the charge is expensed at all.
Which tool should run it?
The simplest one that can link every invoice to its shipment and stop on a cost it does not know.
| Level | Fits when | What to watch |
|---|---|---|
| Spreadsheet per shipment | A few shipments a month, one forwarder | Someone types every invoice; bases drift when a new person takes over |
| QuickBooks Desktop Enterprise landed cost | You already run it | Intuit's landed cost guide covers Enterprise Platinum and Diamond with Advanced Inventory, splits by quantity, amount, percentage or shipping cost, and says landed costs are not designed for multiple currencies (checked December 4, 2026) |
| Inventory or ERP app with landed cost | You want it inside the stock system | Check that it offers volume and weight bases, not only value |
| Zapier, Make or n8n with a model step | Invoices arrive by email as PDFs | Log each run and key it by shipment so a retry does not double-count; see our Zapier vs Make vs n8n comparison |
| Custom code on your accounts | Many suppliers, consolidated containers, late invoices, cost history | Can run on Ecomsellertool Growth OS beside purchasing and inventory |
Intuit's landed cost FAQs for Desktop Enterprise also require a landed cost account, with shipping and handling items mapped to it, before the calculation runs (checked December 4, 2026). We did not find an equivalent QuickBooks Online landed cost article on Intuit's help pages, so ask your accountant how capitalized freight and duty reach your ledger.
What should stay with a person?
The rules and the sign-off. A model reads the invoice PDFs into fields and flags lines it is unsure of; rules link documents, spread costs and build the table. Neither decides that a cost is capitalized, picks a basis or approves a table. Your accountant writes the basis table and decides each late-invoice true-up. A bookkeeper approves every shipment's table before its costs are used. Your customs broker answers classification and duty questions. That split keeps one wrong carton size or one misread invoice from flowing into every margin report.
Who builds landed-cost workflows for ecommerce brands?
Ecomsellertool builds this on your own purchasing records, invoices and accounting system. We have built on Amazon's seller APIs since 2017 and shipped 50+ tools for 100+ teams. We agree the basis table and approval step with your accountant first, then connect the invoices, receiving records and product data and build the allocation and checks. Send a project brief below, or see how our workflow automation service works.
The building blocks are work we have shipped:
- Product costs with a history. For Lavley, a Colorado gift brand selling on Amazon, we built a sales analytics suite whose mapping module lets the team add COGS per product for an accurate profit calculation and keeps the history of each cost change since the product was listed.
- Purchase orders, vendors and overhead costs together. For Ecomsherpa we built a warehouse management system that manages vendors, vendor SKUs and purchase orders, calculates overhead costs and Amazon fees, and tracks warehouse and Amazon inventory side by side.
Our guide to automating Amazon operations shows where cost data fits among the other workflows. You keep your accounts, your data and the custom code we build; the Growth OS base is licensed to you.
Get this workflow built
Send us your inbound costs
Describe the workflow you want automated. We reply with a written plan: scope, timeline and a fixed price.
Frequently asked questions
How do I calculate landed cost per unit for an imported product?
Add up everything you paid to get one shipment into your warehouse: the supplier invoice, freight, duty, customs brokerage, insurance and port or trucking charges. Give each SKU its own supplier cost and duty, spread the shared costs by a basis such as volume or value, then divide each SKU's total by the units you actually received.
Should freight be allocated by value, weight or volume?
Usually by the thing the carrier charged for. Ocean freight is often priced by container space, so volume fits; air freight is priced by chargeable weight, so weight fits. Allocating freight by value puts too much on expensive, small items and too little on bulky, cheap ones. Your accountant picks the basis and you keep it the same every shipment.
Is customs duty part of landed cost?
Duty on goods you hold for sale is commonly included in inventory cost, but what you capitalize is your accountant's decision. Take duty per tariff line from the customs entry rather than spreading the total, because different products carry different rates. Classification and duty rates are your customs broker's and CBP's call, not the workflow's.
What do I do when a freight or duty invoice arrives after the shipment was costed?
Treat it as a true-up. The workflow spreads the late cost with the same basis, shows the change per unit, and splits it between units still in stock and units already sold. A person approves it. How the sold portion is booked, usually to cost of goods sold in the current month, is for your accountant to decide.
Does QuickBooks Online calculate landed cost?
Intuit's landed cost instructions we found are written for QuickBooks Desktop Enterprise Platinum and Diamond with Advanced Inventory, which splits shipping and handling by quantity, amount, percentage or shipping cost. Ask your accountant how capitalized freight and duty should reach item costs in QuickBooks Online or Xero; many brands keep the landed-cost table outside the ledger.
Should I put landed cost in Shopify's cost per item field?
Shopify's own help page tells resellers to enter the price paid to the manufacturer, excluding taxes, shipping or other costs. If you want profit reports to reflect landed cost instead, that is a choice to make with your accountant. Shopify records the cost on each order when it is created, so update the field on the approved date, not before.
