--- title: DiscountApplicationTargetType - Storefront API description: | The type of line (i.e. line item or shipping line) on an order that the discount is applicable towards. api_version: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/enums/DiscountApplicationTargetType md: https://shopify.dev/docs/api/storefront/unstable/enums/DiscountApplicationTargetType.md --- # Discount​Application​Target​Type enum The type of line (i.e. line item or shipping line) on an order that the discount is applicable towards. ## Valid values * LINE\_​ITEM The discount applies onto line items. * SHIPPING\_​LINE The discount applies onto shipping lines. *** ## Fields * [Automatic​Discount​Application.​target​Type](https://shopify.dev/docs/api/storefront/unstable/objects/AutomaticDiscountApplication#field-AutomaticDiscountApplication.fields.targetType) OBJECT Automatic discount applications capture the intentions of a discount that was automatically applied. * [Cart​Automatic​Discount​Allocation.​target​Type](https://shopify.dev/docs/api/storefront/unstable/objects/CartAutomaticDiscountAllocation#field-CartAutomaticDiscountAllocation.fields.targetType) OBJECT The discounts automatically applied to the cart line based on prerequisites that have been met. * [Cart​Code​Discount​Allocation.​target​Type](https://shopify.dev/docs/api/storefront/unstable/objects/CartCodeDiscountAllocation#field-CartCodeDiscountAllocation.fields.targetType) OBJECT The discount that has been applied to the cart line using a discount code. * [Cart​Custom​Discount​Allocation.​target​Type](https://shopify.dev/docs/api/storefront/unstable/objects/CartCustomDiscountAllocation#field-CartCustomDiscountAllocation.fields.targetType) OBJECT The discounts automatically applied to the cart line based on prerequisites that have been met. * [Cart​Discount​Allocation.​target​Type](https://shopify.dev/docs/api/storefront/unstable/interfaces/CartDiscountAllocation#fields-targetType) INTERFACE The discounts that have been applied to the cart line. * [Cart​Discount​Application.​target​Type](https://shopify.dev/docs/api/storefront/unstable/objects/CartDiscountApplication#field-CartDiscountApplication.fields.targetType) OBJECT The discount application capture the intentions of a discount source at the time of application. * [Discount​Application.​target​Type](https://shopify.dev/docs/api/storefront/unstable/interfaces/DiscountApplication#fields-targetType) INTERFACE Discount applications capture the intentions of a discount source at the time of application. * [Discount​Code​Application.​target​Type](https://shopify.dev/docs/api/storefront/unstable/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.targetType) OBJECT Discount code applications capture the intentions of a discount code at the time that it is applied. * [Manual​Discount​Application.​target​Type](https://shopify.dev/docs/api/storefront/unstable/objects/ManualDiscountApplication#field-ManualDiscountApplication.fields.targetType) OBJECT Manual discount applications capture the intentions of a discount that was manually created. * [Script​Discount​Application.​target​Type](https://shopify.dev/docs/api/storefront/unstable/objects/ScriptDiscountApplication#field-ScriptDiscountApplication.fields.targetType) 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.targetType](https://shopify.dev/docs/api/storefront/unstable/objects/AutomaticDiscountApplication#field-AutomaticDiscountApplication.fields.targetType) * <-|[Cart​Automatic​Discount​Allocation.targetType](https://shopify.dev/docs/api/storefront/unstable/objects/CartAutomaticDiscountAllocation#field-CartAutomaticDiscountAllocation.fields.targetType) * <-|[Cart​Code​Discount​Allocation.targetType](https://shopify.dev/docs/api/storefront/unstable/objects/CartCodeDiscountAllocation#field-CartCodeDiscountAllocation.fields.targetType) * <-|[Cart​Custom​Discount​Allocation.targetType](https://shopify.dev/docs/api/storefront/unstable/objects/CartCustomDiscountAllocation#field-CartCustomDiscountAllocation.fields.targetType) * <-|[Cart​Discount​Application.targetType](https://shopify.dev/docs/api/storefront/unstable/objects/CartDiscountApplication#field-CartDiscountApplication.fields.targetType) * <-|[Discount​Code​Application.targetType](https://shopify.dev/docs/api/storefront/unstable/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.targetType) * <-|[Manual​Discount​Application.targetType](https://shopify.dev/docs/api/storefront/unstable/objects/ManualDiscountApplication#field-ManualDiscountApplication.fields.targetType) * <-|[Script​Discount​Application.targetType](https://shopify.dev/docs/api/storefront/unstable/objects/ScriptDiscountApplication#field-ScriptDiscountApplication.fields.targetType)