Skip to main content
Anchor to CustomerSegmentMember

CustomerSegmentMember

object

Requires read_customers access scope. Also: The user must not have restricted access.

The member of a segment.

MoneyV2

The total amount of money that the member has spent on orders.

MailingAddress

The member's default address.

CustomerEmailAddress

The member's default email address.

CustomerPhoneNumber

The member's default phone number.

String!
non-null

The full name of the member, which is based on the values of the first_name and last_name fields. If the member's first name and last name aren't available, then the customer's email address is used. If the customer's email address isn't available, then the customer's phone number is used.

String

The member's first name.

ID!
non-null

The member’s ID.

String

The member's last name.

ID

The ID of the member's most recent order.

CustomerMergeable!
non-null

Whether the customer can be merged with another customer.

Metafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

Arguments

String

The container the metafield belongs to. If omitted, the app-reserved namespace will be used.

String!
required

The key for the metafield.


MetafieldConnection!
non-null

A list of custom fields that a merchant associates with a Shopify resource.

Arguments

String

The metafield namespace to filter by. If omitted, the app-reserved namespace will be used.

[String!]

List of keys of metafields in the format namespace.key, will be returned in the same format.

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.

Boolean
Default:false

Reverse the order of the underlying list.


Anchor to metafieldsByIdentifiersmetafieldsByIdentifiers
[Metafield]!
non-null

The metafields associated with the resource matching the supplied list of namespaces and keys.

Arguments

[HasMetafieldsIdentifier!]!
required

The list of metafields to retrieve by namespace and key.


String

A note about the member.

UnsignedInt64

The total number of orders that the member has made.


Was this section helpful?

query

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.

Arguments

ID

The ID of the segment.

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 email_subscription_status = 'SUBSCRIBED' with this syntax.

ID

The ID of the segment members query.

String

The timezone that's used to interpret relative date arguments. The timezone defaults to UTC if the timezone isn't provided.

Boolean
Default:false

Reverse the order of the list. The sorting behaviour defaults to ascending order.

String

Sort the list by a given key. Valid values: • created_at - Sort by customer creation date • first_order_date - Sort by the date of the customer's first order • last_abandoned_order_date - Sort by the date of the customer's last abandoned checkout • last_order_date - Sort by the date of the customer's most recent order • number_of_orders - Sort by the total number of orders placed by the customer • amount_spent - Sort by the total amount the customer has spent across all orders

Use with the reverse parameter to control sort direction (ascending by default, descending when reverse=true).

Int

The first n elements from the paginated list.

String

The elements that come after the specified cursor.

Int

The last n elements from the paginated list.

String

The elements that come before the specified cursor.



Was this section helpful?


Was this section helpful?