TanqoryDocs

tanqoryExtStoreCreditTotals

  • Query
  • Customers and B2B

Requires read_store_credit_accounts access scope. About access scopes

The holders report's totals, one line per currency that has a holder. Empty while the store credit tools are turned off. Requires read_store_credit_accounts access scope.

Arguments

None.

Returns

[TanqoryExtStoreCreditTotal!]! One currency's line of the store credit holders report.

FieldTypeDescription
balanceMoneyV2!

What those accounts hold in all.

currencyCodeCurrencyCode!

The currency.

expiringMoneyV2!

What of that has an expiry date that has not passed yet.

holdersInt!

How many accounts in this currency hold a balance.

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 TanqoryExtStoreCreditTotals {\n  tanqoryExtStoreCreditTotals {\n    balance {\n      amount\n      currencyCode\n    }\n    currencyCode\n    expiring {\n      amount\n      currencyCode\n    }\n    holders\n  }\n}","variables":{}}'

Built from commit 0cac88ece6de · API version 2026-10