Edit in GitHubLog an issue
Adobe Commerce only. Learn more

allCustomerSegments query

The allCustomerSegments query returns information about the available customer segments.

Customer segments allow merchants to dynamically display content and promotions to specific customers, based on various properties. Examples include customer address, order history, and shopping cart contents.

Syntax

Copied to your clipboard
{
allCustomerSegments {
name
description
apply_to
}
}

Reference

The allCustomerSegments reference provides detailed information about the types and fields defined in this query. -->

Example usage

The following call returns a list of all active customer segments.

Request:

Copied to your clipboard
{
allCustomerSegments {
name
description
apply_to
}
}

Response:

Copied to your clipboard
{
"allCustomerSegments": [
{
"name": "Guests",
"description": "All shoppers who are not logged in",
"apply_to": "VISITOR"
},
{
"name": "Registered",
"description": "Applies to all logged-in customers",
"apply_to": "REGISTERED"
}
]
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.