Adobe Commerce only. Learn more
allCatalogRules query
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}}
Reference
The allCatalogRules
query returns a list of catalog rule names.
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"}]}