The data representation for a Customer to be imported that is persisted as a Customer in the Project.

interface CustomerImport {
    addresses?: CustomerAddress[];
    authenticationMode?: string;
    billingAddresses?: number[];
    companyName?: string;
    custom?: Custom;
    customerGroup?: CustomerGroupKeyReference;
    customerNumber?: string;
    dateOfBirth?: string;
    defaultBillingAddress?: number;
    defaultShippingAddress?: number;
    email: string;
    externalId?: string;
    firstName?: string;
    isEmailVerified?: boolean;
    key: string;
    lastName?: string;
    locale?: string;
    middleName?: string;
    password?: string;
    salutation?: string;
    shippingAddresses?: number[];
    stores?: StoreKeyReference[];
    title?: string;
    vatId?: string;
}

Hierarchy (view full)

Properties

addresses?: CustomerAddress[]

Maps to Customer.addresses.

authenticationMode?: string
  • Set to Password to make the password field required for the Customer.
    • Set to ExternalAuth when the password is not required for the Customer.
billingAddresses?: number[]

The indices of the billing addresses in the addresses array. The billingAddressIds of the customer will be set to the IDs of that addresses.

companyName?: string

Maps to Customer.companyName.

custom?: Custom

The Custom Fields for this Customer.

The Reference to the CustomerGroup with which the Customer is associated. If referenced CustomerGroup does not exist, the state of the ImportOperation will be set to unresolved until the necessary CustomerGroup is created.

customerNumber?: string

Maps to Customer.customerNumber.

dateOfBirth?: string

Maps to Customer.dateOfBirth.

defaultBillingAddress?: number

The index of the address in the addresses array. The defaultBillingAddressId of the customer will be set to the ID of that address.

defaultShippingAddress?: number

The index of the address in the addresses array. The defaultShippingAddressId of the customer will be set to the ID of that address.

email: string

Maps to Customer.email.

externalId?: string

Maps to Customer.externalId.

firstName?: string

Maps to Customer.firstName.

isEmailVerified?: boolean

Maps to Customer.isEmailVerified.

key: string

User-defined unique identifier. If a Customer with this key exists, it will be updated with the imported data.

lastName?: string

Maps to Customer.lastName.

locale?: string

Maps to Customer.locale.

middleName?: string

Maps to Customer.middleName.

password?: string

Required when authenticationMode is set to Password. Maps to Customer.password.

salutation?: string

Maps to Customer.salutation.

shippingAddresses?: number[]

The indices of the shipping addresses in the addresses array. The shippingAddressIds of the customer will be set to the IDs of that addresses.

The References to the Stores with which the Customer is associated. If referenced Stores do not exist, the state of the ImportOperation will be set to unresolved until the necessary Stores are created.

title?: string

Maps to Customer.title.

vatId?: string

Maps to Customer.vatId.