TanqoryDocs

tanqoryExtCustomerMarketingConfirm

  • Mutation
  • Storefront

Confirms the customer's marketing sign-up: every channel waiting for confirmation (email, SMS) is subscribed with confirmed opt-in. customerId and token come from the confirmation link (the customer id as in the link, or a Customer gid). A wrong, used or expired link answers TOKEN_INVALID and changes nothing; so does an unknown customer. Private token only.

Arguments

ArgumentTypeRequiredDefault
customerIdID!Required
tokenString!Required

Returns

TanqoryExtCustomerMarketingConfirmPayload!

FieldTypeDescription
confirmedBoolean!

True when the sign-up was confirmed.

customerUserErrors[CustomerUserError!]!

TOKEN_INVALID.

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 TanqoryExtCustomerMarketingConfirm($customerId: ID!, $token: String!) {\n  tanqoryExtCustomerMarketingConfirm(customerId: $customerId, token: $token) {\n    confirmed\n  }\n}","variables":{"customerId":"gid://tanqory/Type/id","token":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10