Help Center
English
Contents

Import and export locations

Use CSV files to create, update, and export store locations.

Export locations when you need IDs, slugs, fulfillment flags, addresses, and phone numbers in a spreadsheet. Import creates new locations; update changes existing locations by ID. App-managed locations are included in the export for reference and are skipped on update. Exports list each province as its code, such as US-CA, and imports take the code.

Create imports

Create CSVs require: Name. The create CSV has no slug column — every new location gets a slug generated from its name automatically. Existing location names are skipped and reported. Fulfills Online Orders defaults to true when that column is blank, so a new fulfilling location must include a complete service address. Set Fulfills Online Orders to false for storage-only rows.

csv
NameFulfills Online OrdersShips To CountriesAddress 1Address 2DistrictCityProvince CodePostal CodeCountry CodePhoneOffers PickupPickup Ready InPickup InstructionsPickup HoursPickup Stocked Only
Main Warehousetrue123 Market StreetSuite 4San FranciscoUS-CA94105US'+14155550100
Update imports

Update CSVs use the ID column from an export. The ID identifies which location each row updates. A blank Slug keeps the current slug, blank optional text fields clear their current value, and blank boolean fields keep their current value. Clearing address fields on a location that still fulfills online orders fails; set Fulfills Online Orders to false in the same row if the location should become storage-only. App-managed rows are skipped and reported rather than changed.

csv
IDSlugIs ActiveNameFulfills Online OrdersShips To CountriesAddress 1Address 2DistrictCityProvince CodePostal CodeCountry CodePhoneOffers PickupPickup Ready InPickup InstructionsPickup HoursPickup Stocked Only
5f1c2a8e-3b4d-4e6f-8a9b-0c1d2e3f4a5bmain-warehousetrueMain Warehousetrue123 Market StreetSuite 4San FranciscoUS-CA94105US'+14155550100
CSV file format

CSV files use UTF-8. Exports start with a byte order mark (BOM) so spreadsheet apps recognize the encoding, and imports accept files with or without one. A file with text that isn't valid UTF-8, such as one saved in another encoding, is rejected with the line of the first problem. Save it as UTF-8 (in Excel, CSV UTF-8) and upload it again.

A problem with the whole file, such as a missing required column, a column named twice or a file over the size or row limit, is listed in the preview on row 1, the header row, like a row error. Fix the file and upload it again.

A value that starts with =, +, @ or %, or with a tab or line break, is exported with an apostrophe in front so spreadsheet apps show it as text instead of running it as a formula. So is a value that starts with -, except a plain number such as -12.50, which stays a number. A value that really starts with an apostrophe is exported with a second one. Importing the file removes the added apostrophe, so these values come back unchanged.

A value that is exactly __CLEAR__ is also exported with an apostrophe in front, and so is none in a column where it clears a value, such as Quantity Pricing. On import it is read as that text, not as an instruction to clear a value. In other columns none is exported as it is.

Was this page helpful?