TanqoryDocs

customerSegmentMembers

  • Query
  • Customers and B2B

Lists the customers who belong to a segment, a page at a time with first/after. Pick the audience with segmentId, queryId or a segment query, evaluated in the given timezone.

Arguments

ArgumentTypeRequiredDefault
afterStringOptional
beforeStringOptional
firstIntOptional
lastIntOptional
queryStringOptional
queryIdIDOptional
reverseBooleanOptionalfalse
segmentIdIDOptional
sortKeyStringOptional
timezoneStringOptional

Returns

CustomerSegmentMemberConnection! A page of customers in a segment, with pageInfo for the next page, the total count and member statistics.

FieldTypeDescription
edges[CustomerSegmentMemberEdge!]!
pageInfoPageInfo!
statisticsSegmentStatistics!
totalCountInt!

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 CustomerSegmentMembers($first: Int) {\n  customerSegmentMembers(first: $first) {\n    totalCount\n  }\n}","variables":{"first":5}}'

Built from commit c0b3fb3fdef7 · API version 2026-10