Skip to content

Upload prices by CSV

Steps for

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).

Uploading prices by CSV

Prepare the file

One row per SKU and price
(this flows forward)

Choose the file

For one price list, or several with Bulk upload
(this flows forward)

Click Continue

Every row is checked, and one problem stops the whole upload
(this flows forward)

Prices are set

Signed-in customers see the new prices

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:

example.csv
sku,price
123-abc,14.99
124-abc,12.99
125-abc,15.99
126-abc,99.99

Our 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 TRIM function 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.

ColumnWhat it containsRequired
skuThe product SKU as set up in your eCommerce platform or backend system.Yes
priceThe 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_measureThe 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_slugThe handle of the price list to update, for bulk uploads.Only for bulk uploads
display_tax_rateThe 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:

example.csv
sku,price,qty,unit_of_measure,display_tax_rate
ABC-123,10.00,1,each,20
ABC-123,9.00,10,each,20

Upload prices to a price list

  1. 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.
  2. Choose your CSV file, or drop it into the window.
  3. 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.

  1. 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.

  2. Add a price_list_slug column 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
  3. 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.

  4. 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.

MessageWhat 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 PriceEnter 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 SKUThe 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 foundIn 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

ToDo this
Update some pricesUpload 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 priceAt 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 listUpload a CSV file with those SKUs and a blank price.
Remove every price from a price listOpen 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 pricesOpen 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

Next steps

Was this page helpful?

Last updated