customer Segment Members
A paginated list of customers that belong to an individual Segment. Segments group customers based on criteria defined through ShopifyQL queries. Access segment members with their profile information and purchase summary data. The connection includes statistics for analyzing segment attributes (such as average and sum calculations) and a total count of all members.
The maximum page size is 1000.
CustomerSegmentMemberConnection arguments
- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to queryquery•String
The query that's used to filter the members. The query is composed of a combination of conditions on facts about customers such as
with this syntax.- Anchor to queryIdquery•ID
Id The ID of the segment members query.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the list. The sorting behaviour defaults to ascending order.
- Anchor to segmentIdsegment•ID
Id The ID of the segment.
- Anchor to sortKeysort•String
Key Sort the list by a given key. Valid values: •
- Sort by customer creation date •- Sort by the date of the customer's first order •- Sort by the date of the customer's last abandoned checkout •- Sort by the date of the customer's most recent order •- Sort by the total number of orders placed by the customer •- Sort by the total amount the customer has spent across all ordersUse with the
reverseparameter to control sort direction (ascending by default, descending when reverse=true).- Anchor to timezonetimezone•String
The timezone that's used to interpret relative date arguments. The timezone defaults to UTC if the timezone isn't provided.
Anchor to Possible returnsPossible returns
- Anchor to edgesedges•[Customer
Segment Member Edge!]! non-null A list of edges.
- Anchor to pageInfopage•Page
Info Info! non-null An object that’s used to retrieve cursor information about the current page.
- Anchor to statisticsstatistics•Segment
Statistics! non-null The statistics for a given segment.
- Anchor to totalCounttotal•Int!
Count non-null The total number of members in a given segment.