TanqoryDocs

giftCard

  • Query
  • Discounts and marketing

Requires read_gift_cards access scope. About access scopes

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

GiftCard

FieldTypeDescription
balanceMoneyV2!
createdAtDateTime!
crossCurrencyRedemptionStrategyGiftCardCrossCurrencyRedemptionStrategy!
customerCustomer
deactivatedAtDateTime
enabledBoolean!
expiresOnDate
idID!
initialValueMoneyV2!
isRedeemableBoolean!
lastCharactersString!
lineItemLineItem
maskedCodeString!
noteString
orderOrder
recipientAttributesGiftCardRecipient
tanqoryExtCreatedByStaffMember

The staff member who issued the gift card in the admin (giftCardCreate). Null when an app issued it or it was issued before this was recorded.

templateSuffixString
transactionsGiftCardTransactionConnection
updatedAtDateTime!

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":"query GiftCard($id: ID!) {\n  giftCard(id: $id) {\n    balance {\n      amount\n      currencyCode\n    }\n    createdAt\n    crossCurrencyRedemptionStrategy\n    customer { id }\n    deactivatedAt\n    enabled\n    expiresOn\n    id\n    initialValue {\n      amount\n      currencyCode\n    }\n    isRedeemable\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10