Customer

Verifies a customer account with the token from the verification email, so the customer can sign in. The token is the last segment of the link in that email (/customer/verify-account/{token}). Sent only when Configuration → Customer → Settings → Email Verification is on. No customer login is needed. The emailed link opens the storefront verify page; an app that wants to verify in-app should open that link as a deep link and call this endpoint.

post/verify-accounts

Request

Headers

X-STOREFRONT-KEYstring required

Storefront API Key for authentication. Required for all shop/storefront API requests.

X-Localestring
Example:en

Locale code for localized data (e.g. "en", "fr", "ar"). Defaults to channel's default locale.

X-Channelstring
Example:default

Channel code (e.g. "default"). Defaults to the current channel.

X-Currencystring
Example:USD

Currency code (e.g. "USD", "EUR", "INR"). Defaults to channel's base currency.

Request body

tokenstring required

Example request

{
  "token": "5d41402abc4b2a76b9719d911017c592"
}

Response

Account verified.

Changes