{
  "schema_version": "1.7.0",
  "id": "x_SHAPI-shopify-automatic-discounts-query-removed",
  "modified": "2027-01-01T00:00:00Z",
  "published": "2026-09-18T00:00:00Z",
  "summary": "Shopify removes the automaticDiscounts query in API version 2027-01",
  "details": "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.\n\nQuery discountNodes with query: \"method:automatic\" and read each discount from the discount field. Don't move to automaticDiscountNodes, which is also deprecated.",
  "affected": [
    {
      "ecosystem_specific": {
        "provider": "shopify",
        "endpoint": {
          "method": "POST",
          "path": "/admin/api/{version}/graphql.json"
        },
        "change_class": "version-sunset",
        "trigger": {
          "graphql": [
            {
              "field": "automaticDiscounts",
              "operation": "query"
            }
          ]
        },
        "effective_date": "2027-01-01"
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://shopify.dev/changelog/automaticdiscounts-query-is-removed-in-api-version-2027-01"
    }
  ],
  "database_specific": {
    "severity": "high",
    "status": "unverified",
    "url": "https://shapi.dev/osv/shopify-automatic-discounts-query-removed.json"
  }
}
