Shopify removes the automaticDiscounts query in API version 2027-01
- Provider
- Shopify
- Endpoint
POST /admin/api/{version}/graphql.json- Effective
- 2027-01-01
- Severity
- high
- Change
- version-sunset
- Status
- unverified (secondary reports only; SHAPI does not open fix PRs for it)
What changed
As of Admin API version 2027-01, the deprecated automaticDiscounts query no longer exists on QueryRoot, and requests that include it return a validation error. DiscountAutomaticConnection and DiscountAutomaticEdge are removed too.
What to do
Query discountNodes with query: "method:automatic" and read each discount from the discount field. Don't move to automaticDiscountNodes, which is also deprecated.
Sources
- Provider notice (2026-09-18)
Check your code
bash
npx shapi-cli scan .shapi scan lists the call sites this change affects; shapi fix repairs them test-first when the advisory has an automatic fix. All advisories · Markdown · OSV · JSON