TanqoryDocs

tanqoryExtMarketingCampaign

  • Query
  • Discounts and marketing

One campaign of the store, or null.

Arguments

ArgumentTypeRequiredDefault
idID!Required

Returns

TanqoryExtMarketingCampaign

FieldTypeDescription
activities[MarketingActivity!]!

The marketing activities assigned to this campaign.

createdAtDateTime!
handleString!

The campaign's ID as the merchant sees it: the utm_campaign value of its shareable link.

idID!
landingPathString!

The landing URL path and query the shareable link opens: "/?utm_campaign=<handle>&utm_source=shareable_link".

matchRules[TanqoryExtMarketingCampaignMatchRule!]!

The auto-match rules, oldest first. The field / operator rules of rules show here as rules too.

nameString!
observedActivities[TanqoryExtMarketingObservedActivity!]!

Observed traffic assigned to this campaign by hand.

rules[TanqoryExtMarketingCampaignRule!]!
shareablePathString!

"/s/<handle>": the shareable link path (it opens the storefront with the campaign's UTM parameters).

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 TanqoryExtMarketingCampaign($id: ID!) {\n  tanqoryExtMarketingCampaign(id: $id) {\n    activities { id }\n    createdAt\n    handle\n    id\n    landingPath\n    links { id }\n    matchRules { id }\n    name\n    shareablePath\n    shortLinks { id }\n  }\n}","variables":{"id":"gid://tanqory/Type/id"}}'

Built from commit c0b3fb3fdef7 · API version 2026-10