--- title: DiscountClass - GraphQL Admin description: |- The [discount class](https://help.shopify.com/manual/discounts/combining-discounts/discount-combinations) that's used to control how discounts can be combined. api_version: 2025-01 api_name: admin type: enum api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/2025-01/enums/discountclass md: https://shopify.dev/docs/api/admin-graphql/2025-01/enums/discountclass.md --- # Discount​Class enum The [discount class](https://help.shopify.com/manual/discounts/combining-discounts/discount-combinations) that's used to control how discounts can be combined. ## Valid values * ORDER The discount is combined with an [order discount](https://help.shopify.com/manual/discounts/combining-discounts/discount-combinations) class. * PRODUCT The discount is combined with a [product discount](https://help.shopify.com/manual/discounts/combining-discounts/discount-combinations) class. * SHIPPING The discount is combined with a [shipping discount](https://help.shopify.com/manual/discounts/combining-discounts/discount-combinations) class. *** ## Fields * [Discount​Automatic​App.discountClass](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/DiscountAutomaticApp#field-DiscountAutomaticApp.fields.discountClass) OBJECT The `DiscountAutomaticApp` object stores information about automatic discounts that are managed by an app using [Shopify Functions](https://shopify.dev/docs/apps/build/functions). Use `DiscountAutomaticApp`when you need advanced, custom, or dynamic discount capabilities that aren't supported by [Shopify's native discount types](https://help.shopify.com/manual/discounts/discount-types). Learn more about creating [custom discount functionality](https://shopify.dev/docs/apps/build/discounts/build-discount-function). *** Note The [`DiscountCodeApp`](https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountCodeApp) object has similar functionality to the `DiscountAutomaticApp` object, with the exception that `DiscountCodeApp` stores information about discount codes that are managed by an app using Shopify Functions. API versions prior to `2025-10` only return automatic discounts with `context` set to `all`, discounts with other values are filtered out. *** * [Discount​Code​App.discountClass](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/DiscountCodeApp#field-DiscountCodeApp.fields.discountClass) OBJECT The `DiscountCodeApp` object stores information about code discounts that are managed by an app using [Shopify Functions](https://shopify.dev/docs/apps/build/functions). Use `DiscountCodeApp` when you need advanced, custom, or dynamic discount capabilities that aren't supported by [Shopify's native discount types](https://help.shopify.com/manual/discounts/discount-types). Learn more about creating [custom discount functionality](https://shopify.dev/docs/apps/build/discounts/build-discount-function). *** Note The [`DiscountAutomaticApp`](https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountAutomaticApp) object has similar functionality to the `DiscountCodeApp` object, with the exception that `DiscountAutomaticApp` stores information about automatic discounts that are managed by an app using Shopify Functions. *** * [Price​Rule.discountClass](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/PriceRule#field-PriceRule.fields.discountClass) OBJECT Price rules are a set of conditions, including entitlements and prerequisites, that must be met in order for a discount code to apply. We recommend using the types and queries detailed at [Getting started with discounts](https://shopify.dev/docs/apps/selling-strategies/discounts/getting-started) instead. These will replace the GraphQL `PriceRule` object and REST Admin `PriceRule` and `DiscountCode` resources. ### Deprecated fields * [App​Discount​Type.discountClass](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/AppDiscountType#field-AppDiscountType.fields.discountClass) OBJECT Deprecated * [Draft​Order​Platform​Discount.discountClass](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/DraftOrderPlatformDiscount#field-DraftOrderPlatformDiscount.fields.discountClass) OBJECT Deprecated *** ## Map ### Fields with this enum * <-|[Discount​Automatic​App.discountClass](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/DiscountAutomaticApp#field-DiscountAutomaticApp.fields.discountClass) * <-|[Discount​Code​App.discountClass](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/DiscountCodeApp#field-DiscountCodeApp.fields.discountClass) * <-|[Price​Rule.discountClass](https://shopify.dev/docs/api/admin-graphql/2025-01/objects/PriceRule#field-PriceRule.fields.discountClass)