commercetools icon

commercetools

Interact with the commercetools API. Operations are auto-generated from the official Postman collection.

Actions671

Store Customer → Create email token for Customer in Store

AI-generated

Summary

Create a new email verification token for a specific customer in a designated store, valid for a specified time-to-live (TTL) duration in minutes.

Inputs

  • Store Customer Key (required) — The unique identifier of the customer within the store for whom the email token will be created.
  • Store Key (required) — The key of the store where the customer belongs.
  • Id (required) — The ID of the customer in the store to create the email verification token for.
  • Ttl Minutes (required) — The time-to-live (TTL) in minutes for how long the email token will be valid.

Output shape

a single JSON object representing the created email token response from the commercetools API

The output contains the full response from the API call creating the email token, including token details and expiration info if successful. Errors during the operation will be thrown unless 'continueOnFail' is enabled, in which case errors are returned as JSON with an error message.

Examples

Example 1: Create an email verification token valid for 30 minutes for a customer with ID '12345' in store with key 'my-store' and store customer key 'customer-key-1'.

Provide the Store Customer Key as 'customer-key-1', Store Key as 'my-store', Customer Id as '12345', and TTL Minutes as 30.

Links

Discussion