TanqoryDocs

tanqoryExtStoreCreditHolders

  • Query
  • Customers and B2B

Requires read_store_credit_accounts access scope. About access scopes

The store's store credit holders: the accounts with a balance, of a customer or a company location. Sorted by balance unless sortKey says otherwise (reverse: true for the largest first). query: currency_code:<code>, owner_type:customer or owner_type:company_location. Empty while the store credit tools are turned off. Requires read_store_credit_accounts access scope.

Arguments

ArgumentTypeRequiredDefault
afterStringOptional
beforeStringOptional
firstIntOptional
lastIntOptional
queryStringOptional
reverseBooleanOptionalfalse
sortKeyTanqoryExtStoreCreditHolderSortKeysOptionalBALANCE

Returns

StoreCreditAccountConnection!

FieldTypeDescription
edges[StoreCreditAccountEdge!]!
nodes[StoreCreditAccount!]!
pageInfoPageInfo!

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 TanqoryExtStoreCreditHolders($first: Int) {\n  tanqoryExtStoreCreditHolders(first: $first) {\n    nodes {\n      id\n      tanqoryExtNextExpiresAt\n    }\n    pageInfo { hasNextPage endCursor }\n  }\n}","variables":{"first":5}}'

Built from commit 0cac88ece6de · API version 2026-10