--- title: DiscountApplicationTargetSelection - Storefront API description: | The lines on the order to which the discount is applied, of the type defined by the discount application's `targetType`. For example, the value `ENTITLED`, combined with a `targetType` of `LINE_ITEM`, applies the discount on all line items that are entitled to the discount. The value `ALL`, combined with a `targetType` of `SHIPPING_LINE`, applies the discount on all shipping lines. api_version: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/enums/DiscountApplicationTargetSelection md: https://shopify.dev/docs/api/storefront/unstable/enums/DiscountApplicationTargetSelection.md --- # Discount​Application​Target​Selection enum The lines on the order to which the discount is applied, of the type defined by the discount application's `targetType`. For example, the value `ENTITLED`, combined with a `targetType` of `LINE_ITEM`, applies the discount on all line items that are entitled to the discount. The value `ALL`, combined with a `targetType` of `SHIPPING_LINE`, applies the discount on all shipping lines. ## Valid values * ALL The discount is allocated onto all the lines. * ENTITLED The discount is allocated onto only the lines that it's entitled for. * EXPLICIT The discount is allocated onto explicitly chosen lines. *** ## Fields * [Automatic​Discount​Application.​target​Selection](https://shopify.dev/docs/api/storefront/unstable/objects/AutomaticDiscountApplication#field-AutomaticDiscountApplication.fields.targetSelection) OBJECT Automatic discount applications capture the intentions of a discount that was automatically applied. * [Cart​Discount​Application.​target​Selection](https://shopify.dev/docs/api/storefront/unstable/objects/CartDiscountApplication#field-CartDiscountApplication.fields.targetSelection) OBJECT The discount application capture the intentions of a discount source at the time of application. * [Discount​Application.​target​Selection](https://shopify.dev/docs/api/storefront/unstable/interfaces/DiscountApplication#fields-targetSelection) INTERFACE Discount applications capture the intentions of a discount source at the time of application. * [Discount​Code​Application.​target​Selection](https://shopify.dev/docs/api/storefront/unstable/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.targetSelection) OBJECT Discount code applications capture the intentions of a discount code at the time that it is applied. * [Manual​Discount​Application.​target​Selection](https://shopify.dev/docs/api/storefront/unstable/objects/ManualDiscountApplication#field-ManualDiscountApplication.fields.targetSelection) OBJECT Manual discount applications capture the intentions of a discount that was manually created. * [Script​Discount​Application.​target​Selection](https://shopify.dev/docs/api/storefront/unstable/objects/ScriptDiscountApplication#field-ScriptDiscountApplication.fields.targetSelection) OBJECT Script discount applications capture the intentions of a discount that was created by a Shopify Script. *** ## Map ### Fields with this enum * <-|[Automatic​Discount​Application.targetSelection](https://shopify.dev/docs/api/storefront/unstable/objects/AutomaticDiscountApplication#field-AutomaticDiscountApplication.fields.targetSelection) * <-|[Cart​Discount​Application.targetSelection](https://shopify.dev/docs/api/storefront/unstable/objects/CartDiscountApplication#field-CartDiscountApplication.fields.targetSelection) * <-|[Discount​Code​Application.targetSelection](https://shopify.dev/docs/api/storefront/unstable/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.targetSelection) * <-|[Manual​Discount​Application.targetSelection](https://shopify.dev/docs/api/storefront/unstable/objects/ManualDiscountApplication#field-ManualDiscountApplication.fields.targetSelection) * <-|[Script​Discount​Application.targetSelection](https://shopify.dev/docs/api/storefront/unstable/objects/ScriptDiscountApplication#field-ScriptDiscountApplication.fields.targetSelection)