--- title: DiscountAutomaticApp - GraphQL Admin description: >- 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. api_version: 2026-01 api_name: admin type: object api_type: graphql source_url: html: >- https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountAutomaticApp md: >- https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountAutomaticApp.md --- # Discount​Automatic​App object Requires `read_discounts` access scope. 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. *** ## Fields * appDiscountType * appliesOnOneTimePurchase * appliesOnSubscription * asyncUsageCount * combinesWith * context * createdAt * discountClasses * discountId * endsAt * errorHistory * recurringCycleLimit * startsAt * status * title * updatedAt * discountClass: deprecated *** ## Map ### Possible type in * [Discount](https://shopify.dev/docs/api/admin-graphql/latest/unions/Discount) * [Discount​Automatic](https://shopify.dev/docs/api/admin-graphql/latest/unions/DiscountAutomatic) *** ## Mutations * discountAutomaticAppCreate * discountAutomaticAppUpdate *** ## DiscountAutomaticApp Mutations ### Mutated by * [discount​Automatic​App​Create](https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticAppCreate) * [discount​Automatic​App​Update](https://shopify.dev/docs/api/admin-graphql/latest/mutations/discountAutomaticAppUpdate)