Import customers and addresses from a CSV file
Use this to bring in customers and addresses from another system or a spreadsheet, or to update existing ones. The steps that every import shares are in Import from a CSV file.
No messages are sent. Importing customers sends no emails or reminders, however many rows.
To import, follow the steps in that article and set The file holds to Customers and addresses.
One row per address
A customer with two addresses has two rows repeating the customer columns. A customer with no address needs one row with the address cells empty. All rows of a customer need the same customer cells.
The columns
Customer columns (repeat on every row of the customer):
| Column | Needed | What goes in it |
|---|---|---|
| externalId | Optional | Your own id for the customer, up to 100 characters. Matches a customer imported earlier with that id. |
| name | Required for a new customer | The customer's name, up to 250 characters. |
| companyName | Optional | Up to 200 characters. |
| Optional | One address, up to 256 characters. | |
| mobilePhone | Optional | Replaces the customer's Mobile phone, or adds one. Up to 40 characters. |
| otherPhone | Optional | Replaces the customer's Other phone, or adds one. Up to 40 characters. |
| notes | Optional | Free-form notes. |
Address columns (one set per row):
| Column | Needed | What goes in it |
|---|---|---|
| addressExternalId | Optional | Your own id for the address, up to 100 characters. |
| addressKind | Optional | service or billing. A new address without one is a service address. |
| line1 | Required for a new address | Street, up to 200 characters. |
| line2 | Optional | Street line 2, such as the apartment, up to 200 characters. |
| city | Required for a new address | Up to 100 characters. |
| state | Required for a new address | A two-letter US state code such as CO, in any letter case. |
| postalCode | Required for a new address | ZIP code, up to 20 characters. |
How a customer is matched
- By externalId, if the row has one: the customer imported earlier with that id.
- Otherwise by email, ignoring letter case. If an email belongs to several customers, the row is refused: use an externalId, or fix the duplicates in the portal first.
- A row with neither adds a new customer every time, so importing the file again adds them again (the preview warns).
How an address is matched
Within that customer's addresses:
- By addressExternalId, if the row has one.
- Otherwise by the same street, line 2, city, state and ZIP. Spelling and punctuation are ignored, and only the first five ZIP digits count.
A matching row updates the address; otherwise it adds one. A row with no address cells adds or updates just the customer.
Empty cells and errors
Empty cells work as for every import (see Import from a CSV file); to clear a phone, note or address line, change it in Manage customers. A customer-level problem refuses every row of that customer, so the customer isn't half imported. See Fix refused rows and finish an import.
- A phone number or email that opted out before a customer's data was deleted starts opted out again: see Deleting a customer's data.