Edit in GitHubLog an issue
Adobe Commerce only. Learn more

allCartRules query

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"
}
]
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2025 Adobe. All rights reserved.