TanqoryDocs

tanqoryExtCustomerEmailChangeConfirm

  • Mutation
  • Storefront

Confirms an email change: customerId and token come from the link mailed to the new address (/account/email/confirm/<customer id>/<token>, valid 1 day; the id as in the link, or a Customer gid). The customer's email becomes the new address. A wrong, used or expired link answers TOKEN_INVALID; an address another customer of the store now uses answers TAKEN; neither changes anything. Private token only.

Arguments

ArgumentTypeRequiredDefault
customerIdID!Required
tokenString!Required

Returns

TanqoryExtCustomerEmailChangeConfirmPayload!

FieldTypeDescription
customerCustomer

The customer with the new email; null when the change was refused.

customerUserErrors[CustomerUserError!]!

TOKEN_INVALID or TAKEN.

Example request

A starting point: required arguments as variables and a few fields of the result. Replace the placeholders.

Set STORE_ID and TANQORY_STOREFRONT_TOKEN in your environment first (Make your first API call).

curl
curl -X POST "https://$STORE_HOST/api/v1/stores/$STORE_ID/2026-10/graphql" \
  -H "X-Tanqory-Storefront-Access-Token: $TANQORY_STOREFRONT_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation TanqoryExtCustomerEmailChangeConfirm($customerId: ID!, $token: String!) {\n  tanqoryExtCustomerEmailChangeConfirm(customerId: $customerId, token: $token) {\n    customer { id }\n  }\n}","variables":{"customerId":"gid://tanqory/Type/id","token":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10