DiscountAutomaticBasic object
An automatic basic discount.
Required access
Apps must have read_discounts
access scope.
On this page
Fields
- asyncUsageCount (
[Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
)
The number of times the discount has been used. This value is updated asynchronously and can be different than the actual usage count. - createdAt (
[DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
)
The date and time when the discount was created. - customerGets (
[DiscountCustomerGets!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountcustomergets)
)
The qualifying items in an order, the quantity of each one, and the total value of the discount. - endsAt (
[DateTime](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
)
The date and time when the discount ends. For open-ended discounts, usenull
. - minimumRequirement (
[DiscountMinimumRequirement!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountminimumrequirement)
)
The minimum subtotal or quantity that’s required for the discount to be applied. - shortSummary (
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
A short summary of the discount. - startsAt (
[DateTime!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#datetime-2021-01)
)
The date and time when the discount starts. - status (
[DiscountStatus!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/discountstatus)
)
The status of the discount. - summary (
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
A detailed summary of the discount. - title (
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
The title of the discount.
Mutations for DiscountAutomaticBasic
- discountAutomaticBasicCreate
Creates a basic automatic discount. - discountAutomaticBasicUpdate
Updates a basic automatic discount using its ID and input.
Deprecated fields
- usageCount (
[Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
) DEPRECATED
The number of times that the discount has been used.
Deprecation warning
UseasyncUsageCount
instead