Upload prices by CSV
How it works
Upload a CSV file to set exact prices on a manual price list, or to set specific prices for some products on an automatic price list. For single changes, editing the product's prices is quicker.
A CSV (comma-separated values) file is a plain spreadsheet format. Any spreadsheet tool can save a sheet as a CSV file, usually from its File menu. In Google Sheets, for example, go to File > Download > Comma Separated Values (.csv).
Prepare the file
Choose the file
Click Continue
Prices are set
Prepare your CSV file
Start from a template:
You can also get a template in the upload window: click Download CSV template. It also has a quantity column, and a price_list_slug column for a bulk upload.
The simplest file has 2 columns, SKU and Price. It has a header row (the column names), then one row per SKU. Prices are per unit, for example 14.99:
sku,price
123-abc,14.99
124-abc,12.99
125-abc,15.99
126-abc,99.99Our download writes the column names as SKU and Price. Column names aren't case-sensitive, so sku and price work too.
Before you upload, check that:
- The price list exists. If not, create a price list first.
- Every SKU matches a product SKU in your store exactly, and the product is active.
- No SKU has spaces before or after it. A space stops the SKU matching. In Excel or Google Sheets, the
TRIMfunction removes them. - The header row is the first row, and uses the column names shown below.
- Prices are numbers only, such as
14.99, with no currency symbol. - No row has a blank price, unless you want to remove that SKU from the list. See Update or remove some prices.
- The file is saved as CSV, not as a spreadsheet file such as .xlsx.
CSV columns
Most uploads need only SKU and Price. Add the other columns for specific features.
| Column | What it contains | Required |
|---|---|---|
sku | The product SKU as set up in your eCommerce platform or backend system. | Yes |
price | The unit price for the SKU, for example 14.99. Don't include a currency symbol such as $ or £. A blank price removes the SKU from the list. | Yes |
qty (or quantity) | The quantity this price applies from, for quantity pricing. Either column name works. If you use it, every row needs a quantity, and every SKU needs a row with a quantity of 1. An empty cell fails the import. Leave the column out and every price applies from a quantity of 1. | No (defaults to 1) |
unit_of_measure | The unit the quantity belongs to, such as box or pallet, for unit of measure pricing. Letters, numbers and dashes only, such as pallet-box. | No |
price_list_slug | The handle of the price list to update, for bulk uploads. | Only for bulk uploads |
display_tax_rate | The tax percentage (0 to 100) used to show prices with tax included, for tax-inclusive price display. It applies to the whole SKU on the price list, so use the same rate on every row for a SKU: conflicting rates fail the import. A blank cell leaves the SKU's rate as it is, so you can give it on just one of its rows. | No |
For example, a file with price breaks, units and display tax rates:
sku,price,qty,unit_of_measure,display_tax_rate
ABC-123,10.00,1,each,20
ABC-123,9.00,10,each,20Upload prices to a price list
- Go to Pricing,Price lists (opens in your SparkLayer Dashboard in a new tab) and click Upload next to the price list. Or open the list and click Upload CSV under Exact prices for specific SKUs (Prices on a list with only uploaded prices). The Import pricing data by CSV window opens.
- Choose your CSV file, or drop it into the window.
- Click Continue. SparkLayer checks every row, then sets the prices straight away. If any row has a problem, nothing is uploaded: see If a row has a problem.
More detail
- Uploading sets the prices for the SKUs in the file, and removes any SKU with a blank price. Everything else on the list stays as it is.
- To try again after an error, fix the file, choose it again and click Continue.
- You can also add a CSV file when you create a price list. Its prices are uploaded when you save the new list.
- If the price list isn't assigned to a customer group yet, assign it so customers can see the prices.
Upload prices to several price lists at once
Use Bulk upload to update several price lists from one CSV file, for example the same products in several currencies.
-
Find the handle of each price list you want to update. It's shown under the price list's name at Pricing,Price lists (opens in your SparkLayer Dashboard in a new tab), for example
Handle: base-uk. -
Add a
price_list_slugcolumn to your CSV file and enter the handle on each row. You can add as many rows as you need for each price list:example.csv sku,price,price_list_slug 123-abc,7.99,base-uk 123-abc,10.99,base-us 789-abc,5.99,base-uk 789-abc,7.99,base-us -
At Pricing,Price lists (opens in your SparkLayer Dashboard in a new tab), click Bulk upload at the top of the page. The Bulk import pricing data by CSV window opens.
-
Choose your file and click Continue.
Once the prices are uploaded, assign the price list to a customer group if it isn't already.
If a row has a problem
One bad row stops the whole upload
If any row has a problem, nothing is uploaded, not even the rows that are fine. No rows are skipped.
CSV errors appears in the upload window and lists each problem. Most start with a line number, where the header row is line 1. Fix the file, choose it again and click Continue.
| Message | What to do |
|---|---|
| Line 3: SKU is missing. | Add the SKU to the row, or delete the row. |
| Line 3: Price is missing. | Shown with SKU is missing. on a row that has neither. Fill in the row, or delete it. |
| Line 3: Unable to parse price "…". or Invalid format for Price | Enter the price as a number only, such as 14.99. |
| Line 3: Quantity is missing. or Quantity must be a whole number greater than 0. | Add a whole number to every row, or leave the qty column out. |
| Line 3: Price list slug is missing. | In a bulk upload, add the list's handle to the row. |
| Line 3: Display tax rate must be a percentage between 0 and 100. | Enter a rate from 0 to 100, without a % sign. |
| Missing required columns: … | The first row needs sku and price (and price_list_slug for a bulk upload). Click Download CSV template to see the layout. |
| Cannot delete and update pricing for SKU | The SKU has a row with a blank price and a row with a price. Keep one or the other. |
| Invalid file type or File is not a valid CSV. | Save the file as CSV, not as a spreadsheet file such as .xlsx. |
| A message naming a handle that wasn't found | In a bulk upload, check the price_list_slug matches a list's handle exactly. |
SparkLayer doesn't check SKUs against your catalogue when you upload. A SKU that isn't in your store uploads without an error, and no product gets that price. See The upload worked, but products show as Unavailable.
Update or remove some prices
| To | Do this |
|---|---|
| Update some prices | Upload a CSV file with only the SKUs and prices you want to change. SparkLayer updates those prices and keeps the rest. |
| Remove one product's price | At Pricing,Products (opens in your SparkLayer Dashboard in a new tab), open the variant, click the price and click Remove. See Edit a product's prices. |
| Remove several SKUs from a price list | Upload a CSV file with those SKUs and a blank price. |
| Remove every price from a price list | Open the ⋯ menu next to the price list and click Clear, then Clear prices. On an automatic list, the automatic rule stays. |
| Download a price list's prices | Open the ⋯ menu next to the price list and click Download CSV, or click Download CSV on the list's page. |
A blank price removes the SKU
A row with a SKU and a blank price removes that SKU from the price list, with all its quantity breaks. There's no warning, so check for empty cells before you upload. On an automatic list, the SKU goes back to the list's rule.
Troubleshooting
SparkLayer matches prices to products by SKU, so each product (variant) needs a unique SKU in your store. Check that:
- The SKU exists in your product catalogue and matches exactly.
- The SKU is unique.
- The product is active, not a draft.
See Pricing FAQs.
The SKUs in the file probably don't match your products exactly. Check for:
- Spaces before or after a SKU. SparkLayer doesn't check SKUs against your catalogue, so the upload succeeds, but nothing matches. Clear the price list (⋯ > Clear), trim the spaces from the SKU column, then upload the file again.
- SKUs that changed in your store. If you change a SKU after uploading its price, the price list keeps the old SKU and the product has no price. Upload the prices again against the new SKUs.
- A blank price in the file. A row with a SKU and no price removes that SKU from the list. Upload the SKU again with its price.
For other causes, see Why a product shows Unavailable.
CSV errors in the upload window lists what's wrong, and nothing is uploaded until every row is fixed. See If a row has a problem. Check the price column contains numbers only, without a currency symbol, and that the header row is the first row of the file.
See the troubleshooting guide for ways to solve common issues.
Next steps
Last updated