--- title: automaticDiscount - GraphQL Admin description: Returns a `DiscountAutomatic` resource by ID. api_version: 2025-10 api_name: admin type: query api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/queries/automaticDiscount md: https://shopify.dev/docs/api/admin-graphql/latest/queries/automaticDiscount.md --- # automatic​Discount query Deprecated. Use [automaticDiscountNode](https://shopify.dev/docs/api/admin-graphql/latest/queries/automaticDiscountNode) instead. Returns a `DiscountAutomatic` resource by ID. ## Arguments * id [ID!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/ID) required The ID of the `DiscountAutomatic` to return. *** ## Possible returns * Discount​Automatic [Discount​Automatic](https://shopify.dev/docs/api/admin-graphql/latest/unions/DiscountAutomatic) The type of discount associated to the automatic discount. For example, the automatic discount might offer a basic discount using a fixed percentage, or a fixed amount, on specific products from the order. The automatic discount may also be a BXGY discount, which offers customer discounts on select products if they add a specific product to their order. *** ## Examples * ### automaticDiscount reference ## Query Reference ```graphql { automaticDiscount(id) { # automaticDiscount fields } } ```