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}}
Reference
The allCustomerGroups
reference provides detailed information about the types and fields defined in this query.
Example usage
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"}]}