Class ByProjectKeyInStoreKeyByStoreKeyLoginPostString

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

Authenticates a Customer associated with a Store.

Allows merging items from an anonymous Cart into the most recently modified active Cart of a Customer. If no active Cart exists, the anonymous Cart becomes the Customer's active Cart. If the Customer has multiple active Carts, the anonymous Cart is merged into the most recently modified active Cart.

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("")
            .execute()