Import Customers from CSV
Move customer accounts and saved addresses from your old shop into EverShop with CSV (comma-separated values) files.
Before you start
- EverShop imports customers with two import types. Customers creates and updates customer accounts. Customer addresses adds addresses to those accounts.
- Import the customers file first, and wait until that import has ended. Each address finds its customer by the email address. The customer must exist when EverShop checks the addresses file. The tip at the bottom of the New import page gives the full order: categories, products, customers, addresses.
- The upload, the check of the file and the list of imports work as for products. This page explains what is different for customers. See Import Products from CSV.
- The file must be a comma-separated CSV file saved as UTF-8. It can have up to 200,000 rows and 100 MB. Only one import runs at a time in the whole store.
- An import sends webhook events: Customer created for each new customer and Customer updated for each customer that a row updates. See Events you can send.
- The order history from your old shop does not move to EverShop.
- Customer data is personal data. Check the privacy rules that apply to your business before you move it.
Steps
Import the customers file
-
Go to Quick links › Import, then click New import.
-
Under What do you want to import?, select Customers.
-
Under If a record already exists, choose what happens to an email address that already belongs to a customer:
- Create and update: new email addresses become new customers, and existing customers are updated.
- Only create: an email address that is already a customer is an error.
- Only update: an email address that is not a customer yet is an error.
-
Click Download the customers template (CSV). Fill in one row for each customer. See Columns of the customers file.
-
Click Choose a CSV file... and select your file.
-
Click Upload and validate.
-
Read the result of the check. When it finds no errors, click Start import. To fix errors, see Fix errors in the file.
When the import ends, the new customers are in Customer › Customers. Their creation date is the date of the import, not the date they joined your old shop.
Import the addresses file
-
Wait until the customers import has ended.
-
Go to Quick links › Import, then click New import.
-
Under What do you want to import?, select Customer addresses. The page has no If a record already exists choice, because each row adds a new address.
-
Click Download the customer addresses template (CSV). Fill in one row for each address. See Columns of the addresses file.
-
Click Choose a CSV file..., select your file, and click Upload and validate.
-
When the check finds no errors, click Start import.
Columns of the customers file
The template has the columns below, plus one metafield: column for each customer custom field. Leave out the columns you do not need, but keep email. A new customer needs email and full_name. To update a customer, only email is needed.
| Column | What to write | When the cell is empty |
|---|---|---|
email | The customer's email address, such as jane.doe@example.com. EverShop uses it to find an existing customer. Letter case does not matter. Each email address can appear once in a file. | The row is an error. |
full_name | The customer's name. | New customer: an error. Existing customer: the name stays. |
status | 1 for Enabled, 0 for Disabled. You can also write true or false. A disabled customer cannot sign in. | New customer: Enabled. Existing customer: the status stays. |
group | The name of a customer group. Letter case does not matter. EverShop 2.4.0 has one group, Default. See Customer groups. | New customer: Default. Existing customer: the group stays. |
password_hash | The customer's password from your old shop, as a bcrypt hash. See Passwords. | See Passwords. |
password | A password in plain text, at least 6 characters. See Passwords. | See Passwords. |
metafield: columns | The value of a customer custom field, in a column such as metafield:custom.loyalty_number. Write numbers with a dot and no thousands separator. Write 1 or 0 for a Boolean field. Write a date as 2026-12-31 and a color as #1f6f5c. A URL field needs a full address, such as https://example.com. For a field with Allow multiple, separate the values with |. The custom field must already exist for customers. Otherwise the check shows an error. See Add Custom Fields. | New customer: an error when the field is required. Existing customer: the value stays. |
The template starts with two example rows, for example.customer@example.com and example.customer2@example.com. EverShop skips them with a warning, so you can leave them in the file.
How updates work
A row whose email address belongs to a customer of your store updates that customer:
- EverShop changes only
full_name,status,groupand the custom fields that have a value. An empty cell keeps the current value. - An import never changes a password. EverShop ignores the password columns of an existing customer and shows a warning. So you can import the same file again: customers keep the passwords they chose.
Passwords of imported customers
The customers file decides how a new customer signs in for the first time:
- No password in the row. EverShop gives the account a random password that nobody knows. To sign in, the customer clicks Forgot your password? on the sign-in page and chooses a password. This works only when your store can send emails. See Set Up Email Sending. The customer cannot create a second account with the same email address.
- A
password_hash. The customer keeps the password from your old shop. A hash is the scrambled form in which a shop stores a password. This works only when your old shop used bcrypt, a common hashing method. A bcrypt hash starts with$2a$,$2b$or$2y$. It has a cost from 04 to 15 and is 60 characters long. EverShop refuses other formats with an error. If your old shop uses another format, leave the column empty. - A
password. A password in plain text, at least 6 characters. EverShop saves only a hash of it. Use it only when you must, because the file then holds your customers' passwords.
A row cannot have both a password and a password_hash.
EverShop stores the uploaded file with the import. When an import ends with no failed rows, EverShop deletes the file within about 10 minutes. Otherwise it keeps the file for Download file with errors. It deletes the file with the import: when you delete the import, or after about 7 days. To remove a file with passwords sooner, delete the import. The file with errors shows (hidden) instead of each password.
Columns of the addresses file
One row adds one address. A customer can have several rows. Which columns need a value depends on the country and on your address settings. See How EverShop checks addresses.
| Column | What to write |
|---|---|
email | Required. The email address of the customer. The customer must already exist in your store. Letter case does not matter. |
recipient | The full name on the address. Required, unless the row has given_name and family_name. |
given_name, family_name | The first name and the last name. EverShop joins them into the full name. With Name format set to First and last name, the template has these columns instead of recipient. Both are then required. |
organization | The company name. Company in Setting › Customer Setting makes it required, optional or hidden. |
address_line_1 | Required. The street address. |
address_line_2, address_line_3 | More address lines, such as a suite number. The address form shows a third line only when Address line 3 is Enabled. |
locality | The city or town. Required in most countries. |
dependent_locality | A part of the city, such as a ward or a neighborhood, for countries whose addresses have one. |
administrative_area | The state, province or region, as a region key in capital letters, such as US-CA for California. Not the name of the region. Required in countries such as the United States. |
postal_code | The postal code, in the format of the country. A US ZIP code is 94105 or 94105-1234. |
sorting_code | A sorting code, for the few countries whose addresses use one. Leave it empty otherwise. |
country | Required. The two-letter country code, such as US or DE. Not the country name. |
telephone | The phone number. Required unless Telephone is Optional or Hidden. A number without a dialing code gets the code of the country. For example, (415) 555-0100 in the US becomes +14155550100. |
extra | Leave it empty. It holds the values of address fields that an extension adds, as JSON (a text format for data). |
is_default | 1 makes the address the customer's default address. 0 or an empty cell does not. You can also write true or false. |
The template starts with two example rows for example.customer@example.com, one in San Francisco and one in Berlin. EverShop skips them with a warning.
How address rows work
- Each row adds an address. EverShop never updates or replaces an address. If you import the same file twice, each customer gets every address twice.
- Import each address once. The customer sees and deletes their addresses in the Address book of their account. See Addresses.
- Default address. A row with
is_defaultset to1makes its address the default. EverShop removes the default mark from the customer's other addresses, also from addresses saved before the import. When a file gives one customer two default addresses, the last one wins, and the check shows a warning. - Resume. A resumed addresses import does not add the same address twice. See Cancel, stop and resume.
- In the list of imports, an addresses import shows
--in the Mode column.
How EverShop checks addresses
EverShop checks each address with the same rules as the address form in a customer's account. The rules come from three places:
- The country. Each country has its own address format. It decides which fields are required, the format of the postal code and the list of regions. For example, a US address needs a city, a state and a ZIP code. A German address needs no region.
- Setting › Customer Setting. The Addresses part sets what every address form asks for. It has Name format, Telephone, Company, Address line 2, Address line 3 and Required fields. The import follows these settings too. A field that these settings hide is not checked. The import still saves a value that the file gives for it. See Guest Checkout and Address Format.
- Sell to countries. EverShop refuses an address in a country that you do not sell to. The message is "We do not sell to FR". See Choose Where You Sell.
Region keys are the same keys that your store address and your tax rates use. See How EverShop uses your store address.
The messages use the field names of the address form, not the column names. For example, a wrong postal_code in a US address shows "ZIP code is not valid". A region name in administrative_area shows "State is not a valid region".
What your customers see
A customer with a password from the file signs in with their email address and that password. A customer without one clicks Forgot your password? on the sign-in page. EverShop then emails a link to choose a password. The link works for 48 hours.
After signing in, customers find their imported addresses in the Address book of their account. The default address has a highlighted border.
Troubleshooting
Why do imported customers see "Invalid email or password"?
- The row had no password, so the account has a password that nobody knows. The customer must click Forgot your password? first. This works only when your store can send emails. See Set Up Email Sending.
- The row had
status0. A disabled customer cannot sign in. See Disable a Customer Account.
"There is no customer with the e-mail ..."
The addresses file names an email address that is not a customer of your store. Check these causes:
- The customers import had not ended when EverShop checked the addresses file. The page then also says "This check ran while a customers import was running. Check again when it has finished." When the customers import has ended, click Check again.
- The customer's row failed in the customers import, or the two files spell the email address differently. Import the customer first, or fix the email address.
Errors in a customers file
| Message | What to do |
|---|---|
| The value in column "email" must be an e-mail address, such as jane@example.com. | Correct the email address in the file. A customer cannot be imported without a valid one. |
| The customer "jane.doe@example.com" already exists, and this import only creates new ones. | Remove the row, or upload the file again with Create and update. |
| The customer "jane.doe@example.com" does not exist, and this import only updates existing ones. | Remove the row, or upload the file again with Create and update. |
| The new customer "jane.doe@example.com" needs a value in column "full_name". | Write the customer's name. |
| The e-mail "jane.doe@example.com" is already used in row 3 (letter case does not matter). Each customer can appear once in a file. | Keep one row for each customer. |
| The customer group "VIP" is not a group of the store. | Write Default, or leave the cell empty. |
| The value in column "password_hash" is not a bcrypt hash: it starts with $2a$, $2b$ or $2y$, then a cost from 04 to 15, and is 60 characters long. | Your old shop uses another password format. Empty the column. The customers then choose a new password. |
| The value in column "password" is refused by the password rules of the store: Password must be at least 6 characters. | Use a longer password, or empty the cell. |
| Give either a password or a password_hash, not both. | Empty one of the two cells. |
| The password is "(hidden)", which is what the file with errors shows instead of a password. Type the password again, or leave the cell empty. | Type the password again, or empty the cell. |
| The column "password" is ignored for "jane.doe@example.com", who is already a customer: an import never changes a password. | Nothing. This is a warning, and the import can start. |
Errors in an addresses file
| Message | What to do |
|---|---|
| The country "United States" is not a country code the store knows (two letters, such as US). | Write the two-letter code, such as US. |
| State is not a valid region | Write the region key in capital letters, such as US-CA, not the name. |
| ZIP code is not valid | Write the postal code in the format of the country. |
| Telephone is required | Add the phone number, or set Telephone to Optional in Setting › Customer Setting. |
| We do not sell to FR | Add the country to Sell to countries, or remove the row. |
| The column "city" is not a column of the customer addresses file and is ignored. | Rename the column as in the template. The name goes in recipient, the street in address_line_1 and the city in locality. The state goes in administrative_area, the postal code in postal_code. |
| Row 3 already makes an address of "jane.doe@example.com" the default one. The last one in the file wins. | A warning. Keep 1 in one row for each customer. |
Next steps
- Find a CustomerCheck the customers you imported.
- Guest Checkout and Address FormatChoose what every address form asks for.
- Set Up Email SendingLet imported customers choose their password.
- Customer AccountsWhat customers see in their account.
For developers
To run imports with code, see the Import REST API. For the file rules and the configuration of the limits, see CSV Import. For the address rules of each country, see Address Formats.