Adobe Commerce only. Learn more
allCartRules query
This query is part of the Storefront Compatibility Package. It will be added to Adobe Commerce 2.4.8-beta4.
The allCartRules
query returns a list of all active cart rules in the store.
Cart price rules apply discounts to items in the shopping cart, based on a set of conditions.
Syntax
Copied to your clipboard{allCartRules {name}}
Example usage
The following call returns a list of all active cart rules in the store.
Request:
Copied to your clipboard{allCartRules {name}}
Response:
Copied to your clipboard{"allCartRules": [{"name": "Rule A"},{"name": "Rule B"}]}