If stores is not empty, the Customer is specific to those Stores.

interface Customer {
    addresses: Address[];
    authenticationMode: string;
    billingAddressIds?: string[];
    companyName?: string;
    createdAt: string;
    createdBy?: CreatedBy;
    custom?: CustomFields;
    customerGroup?: CustomerGroupReference;
    customerNumber?: string;
    dateOfBirth?: string;
    defaultBillingAddressId?: string;
    defaultShippingAddressId?: string;
    email: string;
    externalId?: string;
    firstName?: string;
    id: string;
    isEmailVerified: boolean;
    key?: string;
    lastModifiedAt: string;
    lastModifiedBy?: LastModifiedBy;
    lastName?: string;
    locale?: string;
    middleName?: string;
    password?: string;
    salutation?: string;
    shippingAddressIds?: string[];
    stores?: StoreKeyReference[];
    title?: string;
    vatId?: string;
    version: number;
}

Hierarchy

Properties

addresses: Address[]

Addresses used by the Customer.

authenticationMode: string

Indicates whether the password is required for the Customer.

billingAddressIds?: string[]

IDs of addresses in addresses used as billing addresses.

companyName?: string

Company name of the Customer.

createdAt: string

Date and time (UTC) the Customer was initially created.

createdBy?: CreatedBy

Present on resources created after 1 February 2019 except for events not tracked.

custom?: CustomFields

Custom Fields for the Customer.

customerGroup?: CustomerGroupReference

CustomerGroup to which the Customer belongs.

customerNumber?: string

User-defined unique identifier of the Customer.

Can be used to refer to a Customer in a human-readable way (in emails, invoices, and other correspondence).
dateOfBirth?: string

Date of birth of the Customer.

defaultBillingAddressId?: string

ID of the address in addresses used as the default billing address.

defaultShippingAddressId?: string

ID of the address in addresses used as the default shipping address.

email: string

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

externalId?: string

Optional identifier for use in external systems like Customer Relationship Management (CRM) or Enterprise Resource Planning (ERP).

firstName?: string

Given name (first name) of the Customer.

id: string

Unique identifier of the Customer.

isEmailVerified: boolean

Indicates whether the email address of the Customer is verified.

key?: string

User-defined unique identifier of the Customer.

lastModifiedAt: string

Date and time (UTC) the Customer was last updated.

lastModifiedBy?: LastModifiedBy

Present on resources created after 1 February 2019 except for events not tracked.

lastName?: string

Family name (last name) of the Customer.

locale?: string

Preferred language of the Customer.

middleName?: string

Middle name of the Customer.

password?: string

Present only when authenticationMode is set to Password.

salutation?: string

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

shippingAddressIds?: string[]

IDs of addresses in addresses used as shipping addresses.

Stores to which the Customer is assigned to.

- If no Stores are specified, the Customer is a global customer, and can log in using the [Password Flow for global Customers](/../api/authorization#password-flow-for-global-customers).
- If any Stores are specified, the Customer can only log in using the [Password Flow for Customers in a Store](/../api/authorization#password-flow-for-customers-in-a-store) for those specific Stores.
title?: string

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

vatId?: string

Unique VAT ID of the Customer.

version: number

Current version of the Customer.

Generated using TypeDoc