TanqoryDocs

tanqoryExtBackInStockSubscribe

  • Mutation
  • Storefront

Keeps a shopper's request for one email when a sold-out option can be bought online again. Asking again for the same option and address waits again. Private token only.

Arguments

ArgumentTypeRequiredDefault
variantIdID!Required
emailString!Required

Returns

TanqoryExtBackInStockSubscribePayload!

FieldTypeDescription
subscribedBoolean!

The request is kept (the same answer when the address already waits for this option).

availableBoolean!

The option can be bought online now: nothing was kept, the shopper can buy it.

userErrors[TanqoryExtStorefrontReviewUserError!]!

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 TanqoryExtBackInStockSubscribe($variantId: ID!, $email: String!) {\n  tanqoryExtBackInStockSubscribe(variantId: $variantId, email: $email) {\n    subscribed\n    available\n    userErrors {\n      field\n      message\n      code\n    }\n  }\n}","variables":{"variantId":"gid://tanqory/Type/id","email":""}}'

Built from commit 0cac88ece6de · API version 2026-10