Class ByProjectKeyLoginPost

java.lang.Object
io.vrap.rmf.base.client.ApiMethod<T,TResult>
io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyLoginPost,CustomerSignInResult,CustomerSignin>
com.commercetools.api.client.ByProjectKeyLoginPost
All Implemented Interfaces:
ErrorableTrait<ByProjectKeyLoginPost>, io.vrap.rmf.base.client.ClientRequestCommand<CustomerSignInResult>, io.vrap.rmf.base.client.CreateHttpRequestCommand, io.vrap.rmf.base.client.RequestCommand<CustomerSignInResult>

public class ByProjectKeyLoginPost extends io.vrap.rmf.base.client.BodyApiMethod<ByProjectKeyLoginPost,CustomerSignInResult,CustomerSignin> implements ErrorableTrait<ByProjectKeyLoginPost>

Authenticates a global Customer not associated with a Store. For more information, see Global versus Store-specific Customers. If the Customer is registered in a Store, use the Authenticate (sign in) Customer in Store method.

If an account with the given credentials is not found, an InvalidCredentials error is returned.



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