TanqoryDocs

tanqoryExtMarketingCampaignBreakdowns

  • Query
  • Orders and payments

A campaign's "Items sold by product", "Sessions by device" and "Sessions by location"; null when not the store's.

Arguments

ArgumentTypeRequiredDefault
fromDate!Required
idID!Required
toDate!Required

Returns

TanqoryExtMarketingCampaignBreakdowns

FieldTypeDescription
itemsByProduct[TanqoryExtMarketingBreakdownRow!]!

Units sold per product title in the campaign's orders, most first.

sessionsByDevice[TanqoryExtMarketingBreakdownRow!]!

The campaign's visits per device type (DESKTOP, MOBILE, TABLET, OTHER), most first.

sessionsByLocation[TanqoryExtMarketingBreakdownRow!]!

The campaign's visits per country (ISO 3166-1 alpha-2, "Unknown" when not known), most first.

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 TanqoryExtMarketingCampaignBreakdowns($from: Date!, $id: ID!, $to: Date!) {\n  tanqoryExtMarketingCampaignBreakdowns(from: $from, id: $id, to: $to) {\n    __typename\n  }\n}","variables":{"from":"","id":"gid://tanqory/Type/id","to":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10