--- title: DiscountApplication - Storefront API description: | Captures the intent of a discount at the time it was applied. Each implementation represents a different discount source, such as [automatic discounts](https://help.shopify.com/manual/discounts/discount-methods/automatic-discounts), [discount codes](https://help.shopify.com/manual/discounts/discount-methods/discount-codes), and manual discounts. The actual discounted amount on a line item or shipping line is represented by the [`DiscountAllocation`](/docs/api/storefront/unstable/objects/DiscountAllocation) object, which references the discount application it originated from. api_version: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/interfaces/discountapplication md: https://shopify.dev/docs/api/storefront/unstable/interfaces/discountapplication.md --- # Discount​Application interface Captures the intent of a discount at the time it was applied. Each implementation represents a different discount source, such as [automatic discounts](https://help.shopify.com/manual/discounts/discount-methods/automatic-discounts), [discount codes](https://help.shopify.com/manual/discounts/discount-methods/discount-codes), and manual discounts. The actual discounted amount on a line item or shipping line is represented by the [`DiscountAllocation`](https://shopify.dev/docs/api/storefront/unstable/objects/DiscountAllocation) object, which references the discount application it originated from. ## Fields * allocation​Method [Discount​Application​Allocation​Method!](https://shopify.dev/docs/api/storefront/unstable/enums/DiscountApplicationAllocationMethod) non-null The method by which the discount's value is allocated to its entitled items. * target​Selection [Discount​Application​Target​Selection!](https://shopify.dev/docs/api/storefront/unstable/enums/DiscountApplicationTargetSelection) non-null Which lines of targetType that the discount is allocated over. * target​Type [Discount​Application​Target​Type!](https://shopify.dev/docs/api/storefront/unstable/enums/DiscountApplicationTargetType) non-null The type of line that the discount is applicable towards. * value [Pricing​Value!](https://shopify.dev/docs/api/storefront/unstable/unions/PricingValue) non-null The value of the discount application. *** ##### Variables ```json { "allocationMethod": "", "targetSelection": "", "targetType": "", "value": "" } ``` ##### Schema ```graphql interface DiscountApplication { allocationMethod: DiscountApplicationAllocationMethod! targetSelection: DiscountApplicationTargetSelection! targetType: DiscountApplicationTargetType! value: PricingValue! } ```