Edit in GitHubLog an issue
Adobe Commerce only. Learn more

allCustomerGroups query

The allCustomerGroups query returns a list of available customer groups.

Customer groups determine which discounts are available and the tax class that is associated with the group.

Syntax

Copied to your clipboard
{
allCustomerGroups {
name
}
}

Example usage

Retrieve all customer groups

The following call returns a list of all customer groups.

Request:

Copied to your clipboard
{
allCustomerGroups {
name
}
}

Response:

Copied to your clipboard
{
"allCustomerGroups": [
{
"name": "Group A"
},
{
"name": "Group B"
}
]
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.