SFTP Customers

Creating and updating customers via SFTP bulk operations.

The /customers folder allows you to create or update customers in bulk via SFTP. This is useful for migrating existing customer data or onboarding large customer bases.

Upsert changes to Customer. For more details on how to use batch operations see the Jobs documentation for more details on how to use bulk/batch processing.

Folder

/customers

Required Scopes

jobs:create customers:create

File Format

Upload CSV files to the /customers folder. The CSV should use dot notation to match the Customer Creation API structure.

Required Fields

FieldDescriptionRequiredExample
refCustomer reference IDYesCUST001

Optional Fields

The order of the columns only matters when it comes to address definitions.

  • ref is required. See Customer docs on ref for details.
  • address optional, defines an address to be defined on the Customer record. You can name multiple columns address and each will be added, in the order they are defined as columns. This makes the first address column your default address.
  • metadata.[some-name] optional, creates a metadata attribute on the Customer for using the [some-name] defined after metadata.. For example metadata.name will define a metadata attribute called name.
  • appdata.[some-name] optional, and behaves the same as metadata. See Customer for more details on how to use appdata.
FieldDescriptionExample
firstNameCustomer first nameJohn
lastNameCustomer last nameDoe
emailCustomer email address[email protected]
phoneCustomer phone number+1234567890
address.streetStreet address123 Main St
address.cityCitySpringfield
address.stateState/provinceIL
address.zipZIP/postal code62701
address.countryCountry codeUS
metadata.keyCustom metadatavalue

Example CSV

ref,address,address,metadata.name
cus-1,+12223334444,[email protected],Joe
cus-2,+22233334445,[email protected],Jane

Processing

For each valid record:

  1. Data validation: Validate required fields and data formats
  2. Customer creation: Create customer via API
  3. Address creation: Create customer address if provided
  4. Metadata assignment: Assign custom metadata if provided
  5. Status update: Mark record as processed

Error Codes

CodeDescriptionResolution
MISSING_REQUIRED_FIELDRequired field is missingAdd missing field
INVALID_EMAILInvalid email formatCheck email format
INVALID_PHONEInvalid phone formatCheck phone format
DUPLICATE_CUSTOMERCustomer already existsCheck for duplicates
INVALID_ADDRESSInvalid address formatCheck address fields