Costs and profit

Import and export product costs with CSV

Updated

On Settings › Costs › Product costs, press Export CSV, fill the cost column in a spreadsheet, and paste the rows into Import costs from CSV at the bottom of the page.

Before you start

  • Variants in ROASaurus (from the Shopify sync, your connector or your orders).
  • A spreadsheet program: Excel, Numbers or Google Sheets.

Steps

  1. Export what you have

    Press Export CSV above the table. The file product-costs.csv has the columns sku, variant_id, product, variant, shopify_cost, cost, handling, effective_from, country and bundles, one row per variant and cost entry.

  2. Fill in the costs

    Open the file and fill cost (and handling if you use it). Keep sku or variant_id to identify the variant. Leave effective_from empty to apply a cost to every order, or give a date as YYYY-MM-DD.

  3. Keep only the columns you import

    The import reads sku or variant_id, cost, and optionally handling, effective_from, country and bundles. Other columns are ignored. The first row must be the header. Comma, semicolon or tab separated all work.

  4. Import

    Copy the rows, header included, into the box under Import costs from CSV and press Import.

    You should see: "Imported 120 costs." If rows were skipped, the message names the first five and why.

Example

sku,cost,handling,effective_from,country,bundles
TSHIRT-RED-M,4.20,0.50,,,2=7.80 4=14
TSHIRT-RED-M,5.10,0.50,2026-09-01,,
MUG-01,2.00,,,GB IE,

The T-shirt costs 4.20 until 31 August and 5.10 from 1 September; the mug costs 2.00 for orders to the UK and Ireland (a zone), and its cost without a zone applies elsewhere.

Starting from your webshop's export

  • Shopify: Products › Export gives a CSV with Variant SKU and Cost per item. On Shopify you rarely need it: the cost per item is read automatically. Fill it in Shopify, or rename the columns to sku and cost and import here.
  • WooCommerce: Products › Export with the SKU column, then add a cost column with your prices.
  • Another tool's cost export: match its SKU column to yours with a lookup in your spreadsheet and keep sku and cost.

Common problems

"Skipped …: no variant with that SKU"
The SKU in the file does not match a variant ROASaurus knows. Check for spaces and leading zeros the spreadsheet removed, or use variant_id from the export.
Nothing was imported
The first row must be the header with at least sku or variant_id and cost.
Decimal commas
Use semicolons between columns when your costs use a decimal comma, as Excel does in many European languages.

Next step

Imported new prices? Check which orders they apply to.

Update costs on past orders

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.