Discount audit guide

How to audit your Shopify discounts

What you’ll need

  • Shopify’s free GraphiQL app (with read_discounts access)

    How to get this: Shopify’s free GraphiQL app
    1. Install it once from shopify-graphiql-app.shopifycloud.com: enter your store address, tick the access listed here, click Install and approve.
    2. Then open it any time from Apps › Shopify GraphiQL App in your admin.

    Step-by-step guide (opens in a new tab)

Audit my discounts

The query

It reads discountNodes, 100 at a time, and needs only the read_discounts scope. It can’t change anything.

Audit query (read-only)
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 } }
}

What to look for

  • Automatic slots near 25.
  • Codes with no usage limit that anyone can reuse.
  • Codes that combine with product, order and shipping discounts.
  • Very large percentages, or 100% off.
  • Active discounts nobody has used in months.
  • Codes that look alike (O and 0, I and 1).

After the audit

Fix things in your admin: add a usage limit, untick a combination, set an end date, or deactivate. Download the audit as a CSV to keep a record of what you had before you changed anything.

More guides

Sources: Shopify Help Center: Combining discounts, GraphQL Admin API 2026-10: discounts.

Updated .