Class ByProjectKeyInStoreKeyByStoreKeyLoginPost

All Implemented Interfaces:
ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyLoginPost>, ClientRequestCommand<CustomerSignInResult>, CreateHttpRequestCommand, HttpRequestCommand<CustomerSignInResult>, RequestCommand<CustomerSignInResult>

Authenticates a Customer associated with a Store. For more information, see Global versus Store-specific Customers.

A Cart returned in the CustomerSignInResult has any invalid Line Items removed and is updated with the latest prices, taxes, and discounts. During these updates, the following errors can be returned: MatchingPriceNotFound and MissingTaxRateForCountry.

Triggers Cart merge during sign-in.

If the Customer exists in the Project but the stores field references a different Store, this method returns an InvalidCredentials error.



   CompletableFuture<ApiHttpResponse<com.commercetools.api.models.customer.CustomerSignInResult>> result = apiRoot
            .withProjectKey("{projectKey}")
            .inStoreKeyWithStoreKeyValue("{storeKey}")
            .login()
            .post(null)
            .execute()