Class ByProjectKeyInStoreKeyByStoreKeyMePasswordResetPost

All Implemented Interfaces:
ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyMePasswordResetPost>, ClientRequestCommand<Customer>, CreateHttpRequestCommand, HttpRequestCommand<Customer>, RequestCommand<Customer>

This is the last step in the password reset process of the authenticated Customer.

Resetting a password produces the Customer CustomerPasswordUpdated Message with reset=true.

After the password is reset, all password tokens issued previously through the password reset flow are invalidated. In addition, any access and refresh tokens issued previously through the password flow and refresh token flow are invalidated. This invalidation of tokens is eventually consistent.

A ResourceNotFound error is returned in the following scenarios:

  • If no Customer exists with the id specified in the customer:{id} scope.
  • If the Customer exists but is associated with a different Store than what is specified in the manage_my_profile:{projectKey}:{storeKey} scope.


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