@gradientedge/commercetools-utils
    Preparing search index...

    Interface Customer

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

    interface Customer {
        addresses: Address[];
        authenticationMode: AuthenticationMode;
        billingAddressIds?: string[];
        companyName?: string;
        createdAt: string;
        createdBy?: CreatedBy;
        custom?: CustomFields;
        customerGroup?: CustomerGroupReference;
        customerGroupAssignments?: CustomerGroupAssignment[];
        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 (View Summary)

    Index

    Properties

    addresses: Address[]

    Addresses used by the Customer.

    authenticationMode: AuthenticationMode

    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

    IDs and references that created the Customer.

    custom?: CustomFields

    Custom Fields for the Customer.

    customerGroup?: CustomerGroupReference

    CustomerGroup to which the Customer belongs.

    customerGroupAssignments?: CustomerGroupAssignment[]

    Customer Groups that the Customer belongs to.

    Used for [Line Item price selection](/../api/pricing-and-discounts-overview#line-item-price-selection).
    
    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

    IDs and references that last modified the Customer.

    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 `stores` is empty, 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

    Individual VAT ID of the Customer.

    version: number

    Current version of the Customer.