How do I add prices from before I turned on Price history?
On this page
Custos records prices from the day you turned on the Price history module. Without earlier prices, a sale in the first 30 days rests on a shorter history. You can fill in the time before in two ways, on the Price history overview, under Prices from before tracking started. Both only add prices before the app’s own record; what the app recorded itself always wins.
From your orders
Custos does this by itself once, right after it first reads your products: you don’t need to click anything. When it is done, Price history says how many variants got earlier prices. To read the orders again later, click Read last 60 days of orders; the read runs in the background.
The app reads, for each order line, the variant, the order date and the unit price before discounts. It reads no customer details. Shopify gives apps the last 60 days of orders, so the history reaches back at most 60 days. Prices are known only on the days something sold: a price that changed between two orders stays unknown, and orders show no compare-at price.
From a CSV file
- Click Upload CSV file and pick the file (up to 5 MB and 100,000 rows).
- The file needs a header row with these columns:
| Column | Required | Format |
|---|---|---|
variant_id |
yes | The numeric Shopify variant ID |
recorded_at |
yes | YYYY-MM-DD or a full date and time such as 2026-09-01T10:00:00Z (UTC) |
price |
yes | The price in your shop currency, for example 39.90 |
compare_at_price |
no | The compare-at price, empty when there was none |
currency |
no | Empty or your shop currency |
Each row is a price the variant had from that moment on. The file of Export CSV on a product page uses the same columns.
If a line can’t be read, nothing is imported: Price history lists the first problem lines (for example “Line 3: the date isn’t YYYY-MM-DD or a full date and time”). Fix them and upload the file again. Variants the app doesn’t know, and variants created after the module was turned on (their whole history is already recorded), are skipped.
Verify it worked
Open a product in Price history > Products: the history lists the added prices with the source Order or CSV import, and the chart starts earlier. The “Less than 30 days recorded” badge goes away for sales whose 30 days are now covered.