TanqoryDocs

tanqoryExtAnalyticsSales

  • Query
  • Apps and platform

Sales of the store's orders processed in [since, until), and of [compareSince, compareUntil) as previous when both are given. Test and cancelled orders are left out. series buckets the period by granularity (default DAY) in the store's time zone, empty buckets included. Amounts are in the store currency.

Arguments

ArgumentTypeRequiredDefault
compareSinceDateTimeOptional
compareUntilDateTimeOptional
currencyCodeStringOptional
granularityTanqoryExtAnalyticsGranularityOptional
sinceDateTime!Required
untilDateTime!Required

Returns

TanqoryExtAnalyticsSales!

FieldTypeDescription
currencyCodeCurrencyCode!

The currency of the amounts: the argument, or the store currency when there is no exchange rate for it.

currentTanqoryExtAnalyticsPeriod!
exchangeRateString

The rate the amounts were converted at (store currency to currencyCode). Null when they are in the store currency.

granularityTanqoryExtAnalyticsGranularity!
previousTanqoryExtAnalyticsPeriod
timezoneString!

The store's IANA time zone the buckets are cut in.

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 TanqoryExtAnalyticsSales($since: DateTime!, $until: DateTime!) {\n  tanqoryExtAnalyticsSales(since: $since, until: $until) {\n    currencyCode\n    exchangeRate\n    granularity\n    timezone\n  }\n}","variables":{"since":"","until":""}}'

Built from commit c0b3fb3fdef7 · API version 2026-10