Class ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPostString

All Implemented Interfaces:
ErrorableTrait<ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPostString>, ClientRequestCommand<CustomerToken>, CreateHttpRequestCommand, HttpRequestCommand<CustomerToken>, RequestCommand<CustomerToken>

Use this method to create a password reset token for a Store-specific Customer during their password reset process.

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

Creating a password reset token for the Customer produces the CustomerPasswordTokenCreated Message. The Message will include the token's value, if the token's validity is 60 minutes or less.



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