Discount Audit
See how many of your 25 automatic discount slots are taken, which discounts can stack, and which are risky or stale. Read-only: nothing in your store changes.
What you’ll need
Shopify’s free GraphiQL app (with read_discounts access)
How to get this: Shopify’s free GraphiQL app
- Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
- Then open it any time from Apps › Shopify GraphiQL App in your admin.
1Get your discount list
This query only reads. It can’t change, deactivate or delete anything.
- Install Shopify’s free GraphiQL app and tick the
read_discountsscope. - Paste the query below into the left side and press Run.
- Copy the whole result on the right and paste it in step 2.
- Sign in once:
shopify store auth --store your-store.myshopify.com --scopes read_discounts - Download the script and run
bash discount-audit.sh. It savesdiscount-audit-result.json. - Upload that file in step 2.
query DiscountAudit($after: String) {
discountNodes(first: 100, after: $after) {
pageInfo {
hasNextPage
endCursor
}
nodes {
id
discount {
__typename
... on DiscountAutomaticBasic {
...Base
customerGets { ...Gets }
minimumRequirement { ...Minimum }
}
... on DiscountAutomaticBxgy {
...Base
customerGets { ...Gets }
usesPerOrderLimit
}
... on DiscountAutomaticFreeShipping {
...Base
minimumRequirement { ...Minimum }
}
... on DiscountAutomaticApp {
...Base
appDiscountType { title appKey }
}
... on DiscountCodeBasic {
...Base
...Codes
customerGets { ...Gets }
minimumRequirement { ...Minimum }
}
... on DiscountCodeBxgy {
...Base
...Codes
customerGets { ...Gets }
usesPerOrderLimit
}
... on DiscountCodeFreeShipping {
...Base
...Codes
minimumRequirement { ...Minimum }
}
... on DiscountCodeApp {
...Base
...Codes
appDiscountType { title appKey }
}
}
}
}
}
fragment Base on Discount {
... on DiscountAutomaticBasic { title status startsAt endsAt createdAt asyncUsageCount discountClasses combinesWith { ...Combines } context { __typename } }
... on DiscountAutomaticBxgy { title status startsAt endsAt createdAt asyncUsageCount discountClasses combinesWith { ...Combines } context { __typename } }
... on DiscountAutomaticFreeShipping { title status startsAt endsAt createdAt asyncUsageCount discountClasses combinesWith { ...Combines } context { __typename } }
... on DiscountAutomaticApp { title status startsAt endsAt createdAt asyncUsageCount discountClasses combinesWith { ...Combines } context { __typename } }
... on DiscountCodeBasic { title status startsAt endsAt createdAt asyncUsageCount discountClasses combinesWith { ...Combines } context { __typename } }
... on DiscountCodeBxgy { title status startsAt endsAt createdAt asyncUsageCount discountClasses combinesWith { ...Combines } context { __typename } }
... on DiscountCodeFreeShipping { title status startsAt endsAt createdAt asyncUsageCount discountClasses combinesWith { ...Combines } context { __typename } }
... on DiscountCodeApp { title status startsAt endsAt createdAt asyncUsageCount discountClasses combinesWith { ...Combines } context { __typename } }
}
fragment Codes on Discount {
... on DiscountCodeBasic { usageLimit appliesOncePerCustomer codesCount { count } codes(first: 1) { nodes { code } } }
... on DiscountCodeBxgy { usageLimit appliesOncePerCustomer codesCount { count } codes(first: 1) { nodes { code } } }
... on DiscountCodeFreeShipping { usageLimit appliesOncePerCustomer codesCount { count } codes(first: 1) { nodes { code } } }
... on DiscountCodeApp { usageLimit appliesOncePerCustomer codesCount { count } codes(first: 1) { nodes { code } } }
}
fragment Combines on DiscountCombinesWith {
productDiscounts
orderDiscounts
shippingDiscounts
}
fragment Gets on DiscountCustomerGets {
items { __typename }
value {
__typename
... on DiscountPercentage { percentage }
... on DiscountAmount { amount { amount currencyCode } appliesOnEachItem }
... on DiscountOnQuantity {
quantity { quantity }
effect {
__typename
... on DiscountPercentage { percentage }
... on DiscountAmount { amount { amount currencyCode } }
}
}
}
}
fragment Minimum on DiscountMinimumRequirement {
__typename
... on DiscountMinimumQuantity { greaterThanOrEqualToQuantity }
... on DiscountMinimumSubtotal { greaterThanOrEqualToSubtotal { amount currencyCode } }
}Lists 100 discounts per run. If you have more, step 2 tells you exactly what to run next.
2Paste the result
Paste several pages one after another if you have more than 100 discounts.
Try:
3Audit
What to look at
What can stack
Each cell counts live discount pairs (active or scheduled) that Shopify lets apply to the same order. Rows and columns are discount classes.
Every pair that can stack
All discounts
Guides
Questions
Does this change anything in my store?
No. The audit is a read-only query: it lists your discounts and changes nothing. This tool never deletes or edits a discount. Anything it flags, you fix yourself in your admin.
Do app discounts count toward the 25 limit?
Yes. Shopify allows at most 25 automatic discounts at once, and that includes discounts made by apps and scheduled ones that haven’t started yet. Codes don’t count toward it.
How does Shopify decide what stacks?
Every discount is a product, order or shipping discount, and each says which of those it can combine with. Two discounts apply together only when each one allows the other’s class. Two shipping discounts never combine.
Is my discount data uploaded?
No. You run the query in Shopify’s own GraphiQL app or Shopify CLI and paste the result here. It’s read in your browser and never sent anywhere.
Based on Shopify’s discountNodes reference (API 2026-10) and Combining discounts.