Learn how customers sign up, sign in, and are grouped and found in your Project.
Customers are the people who buy from a business. A Customer account holds a person's details and addresses and connects them to their Carts and Orders. A business uses it to recognize its customers and to offer specific customers their own Prices and promotions. This area covers how customers sign up and sign in, how email addresses keep accounts unique, how Customers work across Stores and for B2B buyers, and how you group Customers and find them.
Customer service teams, merchandisers, and storefront developers typically work with Customers, either in the Merchant Center or with the APIs:
Key concepts
Customer
For example, a customer who signs up at a fashion store gets a Customer account with an email address and a shipping address. The Customer's Carts and Orders, and the Reviews they write, are connected to that account.
- In the Merchant Center: Add a Customer
- For developers: Customers APIs overview
Customer uniqueness
Email case-insensitivity
commercetools stores an email address with the letter case that the customer entered. When a customer signs up, signs in, or requests a password reset, commercetools ignores the letter case of the email address.
Email@example.com:-
Signing in with
email@example.comorEMAIL@example.comsucceeds. -
A sign-up attempt with
email@example.comorEMAIL@example.comfails, unless the Project uses Stores. -
Requesting a password reset with
email@example.comorEMAIL@example.comsucceeds. -
For developers: Email case-insensitivity in the Customers APIs overview
Global versus Store-specific Customers
- A global Customer isn't assigned to a Store and is unique to the Project. A global Customer has broad access to all Stores in the Project and can be associated with Carts and Orders in a Store or without a Store. A global Customer can't create an account in a Store with the same email address.
- A Store-specific Customer is assigned to one or more Stores and is unique in its Store. A Store-specific Customer can create an account in another Store with the same email address. It only has access to resources inside its Stores, and it can only be associated with Carts and Orders in those Stores.
Customer addresses
A Customer account can hold several addresses. Each address is stored once and can serve several purposes. One address can be both a shipping address and a billing address, and you can mark one shipping address and one billing address as the default.
The country in the shipping address determines the eligible Shipping Methods, the delivery costs, and the Tax Rate of Line Items. Every address needs a country, because the tax calculation on the Cart requires it.
- In the Merchant Center: Add address information
- For developers: Customer addresses in the Customers APIs overview
Customer authentication (sign-in)
Customers sign up for an account and sign in to it, typically in your storefront. A Customer signs in with a password or through an external service.
- For developers: Customer authentication in the Customers APIs overview
Cart merge during sign-in and sign-up
Cart merge doesn't apply automatically to Customers who sign in through an external service.
Customer email verification
Customer registration often includes email verification. By default, a new Customer's email address is unverified. A Customer can also be created with an email address that is already verified. The storefront sends the Customer a link by email, and the Customer verifies the address with that link. Updating a Customer's email address makes it unverified again, even if the address stays the same. The platform doesn't restrict a Customer based on email verification. A business decides what to do with the status.
- For developers: Customer email verification in the Customers APIs overview
Customer password reset
A Customer who forgets their password resets it with a link that the storefront sends by email. After a reset, earlier reset links stop working. Access from earlier password-based sign-ins and subsequent renewals is withdrawn, although not instantly. commercetools encrypts passwords and never displays them.
In the Merchant Center, you can reset a Customer's password during the development phase. In a production environment, Customer passwords aren't reset manually. The storefront provides the reset functionality instead.
- In the Merchant Center: Reset a password
- For developers: Customer password reset in the Customers APIs overview
Customer permissions
- In the Merchant Center: Delete a Customer
- For developers: Customer permissions and the complete resource list in the Customers APIs overview
Customer Groups
Use Customer Groups to offer specific Customers the same prices or promotions. For example, you can give all your gold members a discount on a specific Product.
- In the Merchant Center: Assign a Customer to a Customer Group
- For developers: Customer Groups in the Customers APIs overview
Customer Search
Customer Search lets merchants search across a large number of Customers in a Project, which supports back-office use cases. In addition to the Merchant Center, Customer Search lets you search for Customers in other back-office applications. It isn't intended for searching Customers in a storefront.
Customer Search is off by default. You switch it on, or index your Customers in the Merchant Center. Searches work once the indexing is complete. It switches off by itself after 30 days without a search, and you must switch it on again.
- In the Merchant Center: Index Customers for search
- For developers: Customer Search in the Customers APIs overview
How the concepts relate
The following diagram shows how a Customer relates to the shopping records, groups, Stores, and companies they're connected to.
Lifecycle and states
Email verification status
The following diagram shows the verification status of a Customer's email address and what changes it.
By default, a new Customer's email address is unverified. A Customer can also be created as verified. An unverified email address becomes verified when the Customer uses the emailed link. Changing the email address makes it unverified again, even if the address stays the same.
Customer Search availability
The following diagram shows when Customer Search is available in a Project.
Customer Search is deactivated by default. When you switch it on or index the Customers in the Merchant Center, commercetools indexes the Customers. Searches fail until the indexing is complete, and then Customer Search is activated. If nobody searches for 30 days, commercetools deactivates it again.
Selection and precedence rules
Cart assignment at sign-in
The following diagram shows which Cart a customer continues with after they sign up or sign in with an anonymous Cart.
- For developers: Customer authentication in the Customers APIs overview
Common scenarios
Customer-specific products, prices, and discounts
Choose global or Store-specific Customers
A business that runs several Stores decides whether its Customers are global or Store-specific. The choice decides who can register with an email address:
- If the business registers
email@example.comas a global Customer and then tries to register the same address in a Store, the second registration fails. A global Customer's email address can't be used to create an account in a Store. - If the business registers
email@example.comin a Store and then tries to register the same address as a global Customer, the second registration fails. - If both Customers are Store-specific, the same email address can be used in different Stores.