Adobe Commerce only. Learn more
allCatalogRules query
This query is part of the Storefront Compatibility Package. It will be added to Adobe Commerce 2.4.8-beta4.
The allCatalogRules
query returns a list of all active catalog rules in the store.
Catalog price rules can be used to offer products to buyers at a discounted price, based on a set of defined conditions.
Syntax
Copied to your clipboard{allCatalogRules {name}}
Example usage
The following call returns a list of all active catalog rules in the store.
Request:
Copied to your clipboard{allCatalogRules {name}}
Response:
Copied to your clipboard{"allCatalogRules": [{"name": "Rule A"},{"name": "Rule B"}]}