interface MyCustomerDraft {
    addresses?: BaseAddress[];
    companyName?: string;
    custom?: CustomFieldsDraft;
    dateOfBirth?: string;
    defaultBillingAddress?: number;
    defaultShippingAddress?: number;
    email: string;
    firstName?: string;
    lastName?: string;
    locale?: string;
    middleName?: string;
    password: string;
    salutation?: string;
    stores?: StoreResourceIdentifier[];
    title?: string;
    vatId?: string;
}

Properties

addresses?: BaseAddress[]

Addresses of the Customer.

companyName?: string

Company name of the Customer.

Custom Fields for the Customer.

dateOfBirth?: string

Date of birth of the Customer.

defaultBillingAddress?: number

Index of the address in the addresses array to use as the default billing address. The defaultBillingAddressId of the Customer will be set to the id of that address.

defaultShippingAddress?: number

Index of the address in the addresses array to use as the default shipping address. The defaultShippingAddressId of the Customer will be set to the id of that address.

email: string

Email address of the Customer that is unique for an entire Project or Store the Customer is assigned to. It is the mandatory unique identifier of a Customer.

firstName?: string

Given name (first name) of the Customer.

lastName?: string

Family name (last name) of the Customer.

locale?: string

Preferred language of the Customer. Must be one of the languages supported by the Project.

middleName?: string

Middle name of the Customer.

password: string

Password of the Customer.

salutation?: string

Salutation of the Customer, for example, 'Mr.' or 'Mrs.'.

stores?: StoreResourceIdentifier[]

Sets the Stores for the Customer.

title?: string

Title of the Customer, for example, 'Dr.'.

vatId?: string

Individual VAT ID of the Customer.