CostTrail help

How CostTrail works out your costs, and answers to common questions.

Jump to: Getting started · How costs are worked out · Receipts · Charges · Cost per item in Shopify · Orders and returns · Reports · Plans · Questions · Contact

Getting started

  1. Install. CostTrail reads your products, inventory items, locations and stock levels from Shopify. Home shows the import's progress.
  2. Opening costs. Items that already have a "Cost per item" in Shopify start at that cost. Items without one are marked unknown (never $0). Upload an opening-cost CSV on the Costs page to set them, or let their first receipt set them.
  3. Receipts. Each time you receive stock against a purchase order in Shopify, CostTrail creates a receipt. You can also add a manual receipt. Check the costs, add freight or duty, preview, then apply.
  4. Cost per item. When you apply a receipt, CostTrail shows the new average cost of each item and, once you confirm, updates "Cost per item" in Shopify.

How costs are worked out

Landed unit cost = the supplier's unit cost (excluding tax), converted to your store currency at the invoice exchange rate, plus the item's share of the receipt's charges (freight, duty, brokerage, other fees). Recoverable VAT or GST is never added to the cost.

Weighted average cost. Each receipt updates the average:

new average = (unsold stock before × current average + units received × landed unit cost) ÷ (unsold stock before + units received)

Unsold stock is your on-hand stock at every location minus units already committed to orders (their cost was recorded when the order was placed), plus units on their way between your own locations. If unsold stock is zero or negative, the new average is simply the landed unit cost.

CostTrail keeps every cost change in a ledger that is never edited: corrections are added as new entries, and the ledger always reproduces today's costs.

FIFO (Pro). In Settings → Costing method you can cost the store first in, first out instead, from today or a later day, and switch back the same way. On the switch, each item's unsold stock becomes one layer at its average cost. From then on each receipt adds a layer, sales take the oldest layers first (beyond them, at the last cost, trued up by the next receipt), restocked returns go back at the cost they were sold at, and stock lost in Shopify takes the oldest layers. Shopify's cost per item is the layers' value ÷ units, so it moves as layers are used up: review it on the Costs page. Switching back starts the average at that cost. Costs already recorded never change, and receipts dated before a switch can no longer be applied or undone.

Receipts

Charges

Add freight, duty, brokerage or other fees to a receipt, each in its own currency and exchange rate. Each charge is shared between the receipt's items by one of these methods:

Late charges. A bill that arrives after you applied the receipt is added as a late charge. It is costed as if it had been known on the receipt date. The part for units already sold is booked as a COGS adjustment on the day you apply it; past months are never changed.

Estimates. Don't know the freight or duty bill yet? Add the charge with "This is an estimate" and apply the receipt. The cost is used and sent to Shopify straight away, marked as provisional. When the invoice arrives, click "Enter invoice": the difference is added as a late charge (an invoice of 0 removes the cost). Home reminds you of estimates still waiting after 30 days, and Reports → Estimates lists them.

Duty and tariffs (Growth). Set each product's HS code and country of origin in Shopify (product page, Shipping, More details). On the Tariffs page, enter your duty rates by HS code and origin, for example Base duty 4% and Section 301 7.5%. New receipts then fill each line's rates and calculate the duty as an estimate; enter the customs bill when it arrives. In Settings, choose whether duty is on the goods value or on goods and freight. "What if a rate changes?" on the Tariffs page shows the effect of a new rate before it happens.

Margin alerts (Growth). Set a target margin in Settings (and, if a product needs its own, on its cost page). When a receipt, charge or price change leaves a product below its target or below cost, Home and the Margins page show it, with the price that would reach the target. Previews warn before you apply. CostTrail never changes your prices.

Supplier invoices and payments (Pro). On the Payables page, enter a supplier's invoice for a purchase order or a receipt. If it bills a different price than the receipt was costed at, CostTrail corrects the cost: a correction appears on applied receipts for you to preview and apply. Record payments there too, a deposit before the invoice, or an early-payment discount when you pay in time (it lowers the cost). Paying a foreign invoice at a different rate shows as an exchange gain or loss and never changes the cost.

Kits and bundles (Growth). If a bundle app sells a kit as its own product (one whose stock Shopify doesn't track), give it a recipe on the Kits page: which items go into one kit. Each sale then records the cost of every component. Shopify's own bundles need nothing: their components are on the order. Reports → Margin by bundle shows both.

Credits and discounts. A credit note, rebate or early-payment discount is a charge of type "Credit or discount". It lowers the landed cost by value or by quantity. A credit larger than a line's cost is refused.

Charges for a whole purchase order. Enter a charge once on the purchase order and each of its receipts gets its share by what it brings of what was ordered. When everything has arrived, or you mark the purchase order finished, the rest is spread over the receipts that did arrive.

Cost per item in Shopify

Orders and returns

Reports

Plans

Prices are shown on CostTrail's Shopify App Store listing and on Shopify's plan page inside the app. Starter, Growth and Pro start with a 14-day free trial; Shopify bills nothing until it ends, and you can change or cancel your plan before then.

Questions

Why is an item's cost "unknown"?

It had stock but no cost in Shopify (or a cost of exactly 0.00) when CostTrail was installed. Upload an opening-cost CSV, or apply a receipt: the first receipt sets its average. Orders placed while the cost is unknown are flagged "no cost" and corrected when you upload its opening cost.

Why did my average not change after a transfer?

Moving stock between your own locations doesn't buy anything, so it never changes the average.

My stock was negative when the receipt arrived. What happens?

The new average is the receipt's landed unit cost. Units you oversold were recorded at the old cost, so CostTrail adds a COGS adjustment to bring them to the new one.

I found a mistake in an applied receipt.

Undo the receipt, correct it, and apply it again. To add a cost that arrived later, add a late charge instead.

Why didn't Shopify's cost per item change?

Either the cost didn't change, the item's cost is still unknown, or your plan doesn't include updating Shopify (Starter and up). The receipt's "Cost per item in Shopify" section shows what was sent. If an update fails, you can try it again from there.

Can I correct an item's average cost directly?

Yes: open the item on the Costs page and add a manual adjustment from a date you choose (install day to today). Units sold since then get a COGS adjustment.

Why can't some staff open CostTrail?

CostTrail shows product costs, so staff need the "View product costs" permission in Shopify. The store owner can grant it in Shopify's Settings → Users.

What happens if I uninstall?

Shopify asks CostTrail to delete your store's data 48 hours after you uninstall, and it is then deleted. Download any reports you want to keep first. See the privacy policy.

Contact

Contact us through CostTrail's Shopify App Store listing, with your store's myshopify.com address and the reference shown in any error message.