TanqoryDocs

tanqoryExtGiftCardScheduledSendCancel

  • Mutation
  • Discounts and marketing

Requires write_gift_cards access scope. About access scopes

Cancels the gift card email waiting for the recipient's send time: it is never sent, and the message (which holds the code) is deleted. The cancel is written to the gift card's timeline. Afterwards giftCardSendNotificationToRecipient sends the recipient an email with the last characters of the code. GIFT_CARD_NOT_FOUND, NOT_SCHEDULED, DISABLED. Requires write_gift_cards access scope.

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

TanqoryExtGiftCardScheduledSendCancelPayload

FieldTypeDescription
giftCardGiftCard

The gift card, its email no longer scheduled.

userErrors[TanqoryExtGiftCardScheduledSendCancelUserError!]!

Example request

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

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

curl
curl -X POST "https://api.tanqory.com/admin/2026-10/stores/$STORE_ID/graphql" \
  -H "Authorization: Bearer $TANQORY_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{"query":"mutation TanqoryExtGiftCardScheduledSendCancel($id: ID!) {\n  tanqoryExtGiftCardScheduledSendCancel(id: $id) {\n    giftCard { id }\n    userErrors {\n      code\n      field\n      message\n    }\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit 0cac88ece6de · API version 2026-10