Import Ship To addresses by CSV

Add or update Account Locations and Ship To addresses in bulk from a CSV, on one Account's Ship To tab or for many Accounts, with every column and Append vs Replace explained.

Add new Ship To addresses and Account Locations in bulk, or update existing ones, by importing a CSV file. Import from one Account's Ship To tab, or for many Accounts at once from the Accounts list.

Use it to:

  • Load every delivery address for a customer with many stores or job sites.
  • Create Account Locations (divisions, regions or branches) together with their addresses.
  • Fix or update addresses in bulk, such as new phone numbers or a corrected ZIP code.
  • Set the default Ship To for each Location, and the shipping and payment methods each Location can use.

Where to find it: In the Zoey Admin, go to Customers > Accounts, open the Account and click the Ship To tab. The import icon is next to Bulk Actions. See Manage Ship To locations in the admin for how Locations and Ship Tos fit together.

Before you start

  • Every Ship To belongs to an Account Location. Each Account has at least one Location, which Zoey creates automatically when the Account is created or imported.
  • To add addresses to a Location that already exists, or to change an address, you need its ID. Get the IDs by exporting the Accounts first (see Get the IDs of existing Locations and addresses).
  • Save your file as CSV (Comma delimited) (*.csv). In Google Sheets, use Comma Separated Values (.csv).

Get the template

The template has two tabs: Guide explains each column, and Blank Template has only the column headers.

Columns

ColumnRequiredWhat to enter
account_idOnly in the Accounts list importThe Account's ID. Not needed on the Account's own Ship To tab. Also required when two Accounts have the same name.
account_nameYesThe Account's name, exactly as it is in Zoey.
location_idTo use an existing LocationThe ID of the Location the address belongs to. Leave it blank to create a new Location.
location_nameFor a new LocationThe new Location's name, such as North Region or Store 12.
location_statusNo1 = Active, 0 = Inactive.
location_is_defaultNo1 makes this the Account's default Location.
location_external_idNoYour own ID for the Location, for example from your ERP.
location_products_allowedNoSKUs this Location is allowed to order, separated by commas. See Add products to an account's restriction list.
location_shipping_method, location_payment_method, location_invoice_payment_methodNoThe methods this Location can use. See Set allowed methods by CSV.
ship_to_idTo change an existing addressThe address ID. Leave it blank to add a new address.
ship_to_companyNoCompany name on the address.
ship_to_firstname, ship_to_lastnameNoContact name on the address.
ship_to_street1, ship_to_street2Line 1 for a new addressStreet address lines.
ship_to_cityFor a new addressCity.
ship_to_regionWhere the country uses statesState or province, for example New York.
ship_to_postcodeWhere the country uses postal codesZIP or postal code. Format the column as text so leading zeros stay.
ship_to_country_idFor a new addressTwo-letter country code, for example US. See Country codes.
ship_to_telephoneIf your store requires itPhone number.
ship_to_vat_idNoVAT number.
ship_to_zoey_shipping_typeNoThe Address Type: 0 = Commercial, 1 = Residential. UPS and FedEx use it to quote residential or commercial rates.
ship_to_is_defaultNo1 makes this the address selected by default for the Location when an order is written.

Custom address attributes you created can be imported too: add a ship_to_ column with the attribute's code.

Import the file

  1. In the Zoey Admin, go to Customers > Accounts and open the Account.
  2. Click the Ship To tab, then click the import icon next to Bulk Actions.
An Account's Ship To tab with the import icon next to Bulk Actions

The Import Ship Tos window opens.

The Import Ship Tos window with the file drop area and Import Behavior
  1. Choose your CSV file and pick the Import Behavior (see the table below). Import Behavior starts on Append.
  2. If Zoey lists errors, fix those rows in your file and upload it again. Errors are common on a first import, usually a missing required column or a misspelled Account name.
  3. When there are no errors, click Import.

To import Ship Tos for many Accounts in one file, include account_id and import from the Customers > Accounts list instead. See Import accounts and contacts.

Append or Replace?

Import BehaviorWhat it does
AppendAdds rows without an ID as new Locations or addresses, and updates the Locations and addresses whose ID is in the file. Everything else stays as it is. Use it for most imports.
ReplaceMakes the file the full list for each Location in it. Addresses of that Location that aren't in the file are deleted, and its allowed methods are replaced by the file's.
🚧

Include the IDs when you update

With Append, a row without ship_to_id always adds a new address, so re-importing the same file without IDs creates duplicates. Export first to get the IDs. Use Replace only when the file lists every address the Location should keep.

Get the IDs of existing Locations and addresses

  1. In the Zoey Admin, go to Customers > Accounts and tick the Accounts.
  2. Click Bulk Actions and, under Export, choose Export Account Ship To Data.
The Accounts list Bulk Actions menu with the Manage and Export options
  1. Use the exported file as your template: it has the location_id and ship_to_id of every address. Edit the rows you want to change, add new rows without an ID, and import it.

FAQ

Why did a new Location appear after my import?

The row had no location_id, so Zoey created a Location for it. Add the existing Location's ID to the rows, then delete the extra Location in the Ship To tab.

Can customers add their own Ship Tos?

Yes, if their role allows it. See Manage contacts and addresses in My Account.

💬

Ask Zoey AI

Ask, for example: "How do I import Ship To addresses for an account?" or "How do I add a new location to an account by CSV?"

Related articles


Did this page help you?