# 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): https://shopify.dev/changelog/automaticdiscounts-query-is-removed-in-api-version-2027-01

## Machine-readable

- Advisory: https://github.com/SriVarshini09/shapi-advisories/blob/main/advisories/shopify-automatic-discounts-query-removed.json
- OSV: https://shapi.dev/osv/shopify-automatic-discounts-query-removed.json
