Overview
The SHOPPER-ADDRESS_V3 import allows you to import, update, and manage shopper addresses. The import supports multiple addresses per shopper, setting default addresses, and soft-deleting addresses that are no longer active.Key Features
- Multiple addresses per shopper: Each shopper can have multiple addresses identified by unique
address_refvalues - Update existing addresses: Addresses with matching
address_refwill be updated rather than duplicated - Soft delete: Use the
activecolumn to mark addresses as deleted without removing them from the database - Undelete: Setting
active=TRUEon a previously deleted address will restore it - Default address: Mark one address as default per shopper using the
is_defaultflag - Grouped by shopper: All rows are grouped by
shopper_refbefore processing
Column Specifications
Import Behavior
Shopper Reference Validation
- If a
shopper_refdoes not match an existing shopper, a warning is added to the row but the import continues - No addresses will be imported for non-existent shoppers
Address Creation and Updates
- Addresses are matched by
shopper_ref+address_refcombination - If an address with the same
address_refexists for the shopper, it will be updated - If no matching address exists, a new one will be created
- This prevents duplicate addresses for the same
address_ref
Soft Delete and Undelete
- Setting
active=FALSEmarks the address as deleted (is_deleted=TRUEin database) - Setting
active=TRUEon a previously deleted address restores it (is_deleted=FALSE) - If
activeis not provided, the address defaults to active
Default Address
- Set
is_default=TRUEto mark an address as the default for a shopper - Only one address per shopper should be marked as default
- If
is_defaultis not provided, it defaults to FALSE
Example CSV
- Multiple addresses for SHOPPER001 (HOME_ADDR, WORK_ADDR, OLD_ADDR)
- A default address (HOME_ADDR with
is_default=true) - A soft-deleted address (OLD_ADDR with
active=false) - A work address with company name
- An address for a different shopper (SHOPPER002)
