Adobe Commerce only. Learn more
allCustomerGroups query
This query is part of the Storefront Compatibility Package. It will be added to Adobe Commerce 2.4.8-beta4.
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"}]}