Class ByProjectKeyCustomersEmailTokenPost

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

Use this method to create an email token for a global Customer during their email verification process.

Creating an email token for the Customer produces the CustomerEmailTokenCreated 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}")
            .customers()
            .emailToken()
            .post(null)
            .execute()