Class ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordResetPostString

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

Use this method to reset a Store-specific Customer's password during their password reset process.

Resetting the password of the Customer produces the 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.

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



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