<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-automaticdiscounts-query-is-removed-in-api-version-2027-01-279pbqdmm" -->

---
title: The automaticDiscounts query is removed in API version...
description: The automaticDiscounts GraphQL query is removed from Shopify's Admin API starting in version 2027-01. Apps that read automatic discounts through this query...
canonical: https://daily.dev/posts/the-automaticdiscounts-query-is-removed-in-api-version-2027-01-279pbqdmm
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The automaticDiscounts query is removed in API version 2027-01 | daily.dev
og:description: The automaticDiscounts GraphQL query is removed from Shopify's Admin API starting in version 2027-01. Apps that read automatic discounts through this query...
og:url: https://daily.dev/posts/the-automaticdiscounts-query-is-removed-in-api-version-2027-01-279pbqdmm
og:image: https://api.daily.dev/og/posts/279PbQDmm.png
og:image:alt: The automaticDiscounts query is removed in API version 2027-01
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The automaticDiscounts query is removed in API version 2027-01

**[Shopify Developer changelog](https://daily.dev/sources/shopifychangelog)** · 4 min read · 0 upvotes · 0 comments

## Summary

The automaticDiscounts GraphQL query is removed from Shopify's Admin API starting in version 2027-01. Apps that read automatic discounts through this query must migrate to the discountNodes query with a query: "method:automatic" filter before upgrading. Apps on version 2026-10 or earlier continue working unchanged. The DiscountAutomaticNode and DiscountAutomaticConnection types are also removed. Migration involves replacing the query, moving inline fragments one level deeper onto the discount field, and regenerating GraphQL types against 2027-01. The similar automaticDiscountNodes query is also deprecated in favor of discountNodes, meaning apps migrating to it will need to migrate again later.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://shopify.dev/changelog/automaticdiscounts-query-is-removed-in-api-version-2027-01>

## Questions this post answers

### What replaces the automaticDiscounts query in Shopify's GraphQL Admin API version 2027-01?

The discountNodes query with a query: "method:automatic" filter replaces automaticDiscounts, which is removed entirely in API version 2027-01. Requests using automaticDiscounts on 2027-01 return a validation error instead of data. The DiscountAutomaticNode and DiscountAutomaticConnection types are also removed since no other schema fields return them.

_daily.dev surfaces changelog updates like this for teams planning Shopify API upgrades._

### How do I migrate my Shopify app's inline fragments from automaticDiscounts to discountNodes?

Move existing inline fragments one level deeper, from the nodes field under automaticDiscounts onto the discount field of each node returned by discountNodes. For apps reading multiple automatic discount types, add one inline fragment per type on the discount field, or select shared fields through the implemented interfaces, then regenerate GraphQL types against version 2027-01.

_Teams handling Shopify GraphQL migrations can track breaking API changes on daily.dev._

### Will apps on Shopify API version 2026-10 break when automaticDiscounts is removed?

No, apps requesting API version 2026-10 or earlier continue working unchanged as long as those versions remain supported. The removal only affects apps that call automaticDiscounts while requesting API version 2027-01 or later, including apps pinned to unstable once 2027-01 becomes the latest version.

_Developers pinning API versions to avoid breakage can follow Shopify platform changes via daily.dev._

## Similar posts on daily.dev

- [Discounts can now be included in Rollouts](https://daily.dev/posts/discounts-can-now-be-included-in-rollouts-8rnlwtr7w) · Shopify Developer changelog · 0 upvotes · 0 comments
- [DraftOrderDiscountNotAppliedWarning.priceRule removed in GraphQL Admin API 2026-10](https://daily.dev/posts/draftorderdiscountnotappliedwarning-pricerule-removed-in-graphql-admin-api-2026-10-egcleiopz) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Discount application information now available for draft orders on the Customer Account API](https://daily.dev/posts/discount-application-information-now-available-for-draft-orders-on-the-customer-account-api-9aixlo74c) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Default value of appliesOnSubscription changed to true for app discount inputs](https://daily.dev/posts/default-value-of-appliesonsubscription-changed-to-true-for-app-discount-inputs-d5vari9c3) · Shopify Developer changelog · 0 upvotes · 0 comments
- [Purchase-type filtering now enforced for app discounts](https://daily.dev/posts/purchase-type-filtering-now-enforced-for-app-discounts-xmtdnhb9j) · Shopify Developer changelog · 0 upvotes · 0 comments

---

Tags: [#architecture](https://daily.dev/tags/architecture), [#graphql](https://daily.dev/tags/graphql), [#shopify](https://daily.dev/tags/shopify)

[View this post on daily.dev](https://daily.dev/posts/the-automaticdiscounts-query-is-removed-in-api-version-2027-01-279pbqdmm)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The automaticDiscounts query is removed in API version 2027-01","url":"https://daily.dev/posts/the-automaticdiscounts-query-is-removed-in-api-version-2027-01-279pbqdmm","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-automaticdiscounts-query-is-removed-in-api-version-2027-01-279pbqdmm"},"datePublished":"2026-09-18T21:08:33.185Z","dateModified":"2026-10-29T02:15:25.076Z","description":"The automaticDiscounts GraphQL query is removed from Shopify's Admin API starting in version 2027-01. Apps that read automatic discounts through this query...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/a5b9f0de82c011d79696b4f6b99b7364?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Shopify Developer changelog","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Shopify Developer changelog","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/aefcb5d2c1ca4b45b5d2256b9e2a9cc3","url":"https://daily.dev/sources/shopifychangelog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/the-automaticdiscounts-query-is-removed-in-api-version-2027-01-279pbqdmm","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"architecture,graphql,shopify","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Shopify Developer changelog","item":"https://daily.dev/sources/shopifychangelog"},{"@type":"ListItem","position":3,"name":"The automaticDiscounts query is removed in API version 2027-01"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-automaticdiscounts-query-is-removed-in-api-version-2027-01-279pbqdmm#faq","mainEntity":[{"@type":"Question","name":"What replaces the automaticDiscounts query in Shopify's GraphQL Admin API version 2027-01?","acceptedAnswer":{"@type":"Answer","text":"The discountNodes query with a query: \"method:automatic\" filter replaces automaticDiscounts, which is removed entirely in API version 2027-01. Requests using automaticDiscounts on 2027-01 return a validation error instead of data. The DiscountAutomaticNode and DiscountAutomaticConnection types are also removed since no other schema fields return them. daily.dev surfaces changelog updates like this for teams planning Shopify API upgrades."}},{"@type":"Question","name":"How do I migrate my Shopify app's inline fragments from automaticDiscounts to discountNodes?","acceptedAnswer":{"@type":"Answer","text":"Move existing inline fragments one level deeper, from the nodes field under automaticDiscounts onto the discount field of each node returned by discountNodes. For apps reading multiple automatic discount types, add one inline fragment per type on the discount field, or select shared fields through the implemented interfaces, then regenerate GraphQL types against version 2027-01. Teams handling Shopify GraphQL migrations can track breaking API changes on daily.dev."}},{"@type":"Question","name":"Will apps on Shopify API version 2026-10 break when automaticDiscounts is removed?","acceptedAnswer":{"@type":"Answer","text":"No, apps requesting API version 2026-10 or earlier continue working unchanged as long as those versions remain supported. The removal only affects apps that call automaticDiscounts while requesting API version 2027-01 or later, including apps pinned to unstable once 2027-01 becomes the latest version. Developers pinning API versions to avoid breakage can follow Shopify platform changes via daily.dev."}}]}
```

