Class ByProjectKeyCustomersPasswordResetPostString

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

Use this method to reset a global 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.



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