TanqoryDocs

tanqoryExtSubscriptionSummary

  • Query
  • Orders and payments

Requires read_own_subscription_contracts access scope. About access scopes

The store's subscription contracts at a glance: how many there are in each status, how many were created and cancelled in [since, until) with a row per UTC day (default the last 30 days, at most 366 days), and what the active ones bill per month, per currency. Cancellations are counted from the contracts' activity, which began on 2026-11-27. Null while the summary is turned off for this platform. Requires read_own_subscription_contracts access scope.

Arguments

ArgumentTypeRequiredDefault
sinceDateTimeOptional
untilDateTimeOptional

Returns

TanqoryExtSubscriptionSummary

FieldTypeDescription
activeInt!
cancelledInt!
cancelledInPeriodInt!

Contracts cancelled in the period.

createdInPeriodInt!

Contracts created in the period.

days[TanqoryExtSubscriptionSummaryDay!]!

One row per UTC day of the period, oldest first.

expiredInt!
failedInt!
monthlyRecurring[MoneyV2!]!

What the active contracts bill per month, per currency: current line prices times quantities plus the delivery price, before discounts and taxes, spread over a month by their billing interval; rounded to 2 decimals.

pausedInt!
sinceDateTime!

The start of the period (inclusive).

totalInt!

Every contract of the store.

untilDateTime!

The end of the period (exclusive).

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 TanqoryExtSubscriptionSummary {\n  tanqoryExtSubscriptionSummary {\n    active\n    cancelled\n    cancelledInPeriod\n    createdInPeriod\n    expired\n    failed\n    monthlyRecurring {\n      amount\n      currencyCode\n    }\n    paused\n    since\n    total\n  }\n}","variables":{}}'

Built from commit 0cac88ece6de · API version 2026-10