DiscountApplication object
An auto-generated type for paginating through multiple DiscountApplications.
On this page
Fields
- edges (
[[DiscountApplicationEdge!]!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplication)
)
A list of edges. - pageInfo (
[PageInfo!](https://shopify.dev/docs/admin-api/graphql/reference/pageinfo)
)
Information to aid in pagination.
An auto-generated type which holds one DiscountApplication and a cursor during pagination.
On this page
Fields
- cursor (
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
)
A cursor for use in pagination. - node (
[DiscountApplication!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplication)
)
The item at the end of DiscountApplicationEdge.
Types that return DiscountApplicationEdge
[DiscountApplicationConnection.edges](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplication#edges-2021-01)
Discount applications capture the intentions of a discount source at the time of application on an order’s line items or shipping lines.
Fields
- allocationMethod (
[DiscountApplicationAllocationMethod!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplicationallocationmethod)
)
The method by which the discount’s value is allocated to its entitled items. - index (
[Int!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01)
)
An ordered index that can be used to identify the discount application and indicate the precedence of the discount application for calculations. - targetSelection (
[DiscountApplicationTargetSelection!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplicationtargetselection)
)
How the discount amount is distributed on the discounted lines. - targetType (
[DiscountApplicationTargetType!](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountapplicationtargettype)
)
Whether the discount is applied on line items or shipping lines. - value (
[PricingValue!](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/pricingvalue)
)
The value of the discount application.
Types that implement DiscountApplication
[AutomaticDiscountApplication](https://shopify.dev/docs/admin-api/graphql/reference/orders/automaticdiscountapplication)
[DiscountCodeApplication](https://shopify.dev/docs/admin-api/graphql/reference/orders/discountcodeapplication)
[ManualDiscountApplication](https://shopify.dev/docs/admin-api/graphql/reference/orders/manualdiscountapplication)
[ScriptDiscountApplication](https://shopify.dev/docs/admin-api/graphql/reference/orders/scriptdiscountapplication)