--- 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: 2026-01 api_name: storefront type: enum api_type: graphql source_url: html: >- https://shopify.dev/docs/api/storefront/latest/enums/DiscountApplicationTargetType md: >- https://shopify.dev/docs/api/storefront/latest/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.targetType](https://shopify.dev/docs/api/storefront/latest/objects/AutomaticDiscountApplication#field-AutomaticDiscountApplication.fields.targetType) OBJECT An [automatic discount](https://help.shopify.com/manual/discounts/discount-methods/automatic-discounts) applied to a cart or checkout without requiring a discount code. Implements the [`DiscountApplication`](https://shopify.dev/docs/api/storefront/current/interfaces/DiscountApplication) interface. Includes the discount's title, value, and allocation details that specify how the discount amount distributes across entitled line items or shipping lines. * [Cart​Automatic​Discount​Allocation.targetType](https://shopify.dev/docs/api/storefront/latest/objects/CartAutomaticDiscountAllocation#field-CartAutomaticDiscountAllocation.fields.targetType) OBJECT A discount allocation [that applies automatically](https://help.shopify.com/manual/discounts/discount-methods/automatic-discounts) to a cart line when configured conditions are met. Unlike [`CartCodeDiscountAllocation`](https://shopify.dev/docs/api/storefront/current/objects/CartCodeDiscountAllocation), automatic discounts don't require customers to enter a code. * [Cart​Code​Discount​Allocation.targetType](https://shopify.dev/docs/api/storefront/latest/objects/CartCodeDiscountAllocation#field-CartCodeDiscountAllocation.fields.targetType) OBJECT A discount allocation applied to a cart line when a customer enters a [discount code](https://help.shopify.com/manual/discounts/discount-methods/discount-codes). * [Cart​Custom​Discount​Allocation.targetType](https://shopify.dev/docs/api/storefront/latest/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.targetType](https://shopify.dev/docs/api/storefront/latest/interfaces/CartDiscountAllocation#fields-targetType) INTERFACE A common interface for querying discount allocations regardless of how the discount was applied ([automatic](https://help.shopify.com/manual/discounts/discount-methods/automatic-discounts), [code](https://help.shopify.com/manual/discounts/discount-methods/discount-codes), or custom). Each implementation represents a different discount source. Tracks how a discount distributes across [cart lines](https://shopify.dev/docs/api/storefront/current/objects/CartLine). Each allocation includes the [`CartDiscountApplication`](https://shopify.dev/docs/api/storefront/current/objects/CartDiscountApplication) details, the discounted amount, and whether the discount targets line items or shipping. * [Cart​Discount​Application.targetType](https://shopify.dev/docs/api/storefront/latest/objects/CartDiscountApplication#field-CartDiscountApplication.fields.targetType) OBJECT Captures the intent of a discount source at the time it was applied to a cart. This includes the discount value, how it's allocated across entitled items, and which line types it targets. The actual discounted amounts on specific cart lines are represented by [`CartDiscountAllocation`](https://shopify.dev/docs/api/storefront/current/interfaces/CartDiscountAllocation) objects, which reference this application. * [Discount​Application.targetType](https://shopify.dev/docs/api/storefront/latest/interfaces/DiscountApplication#fields-targetType) 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/current/objects/DiscountAllocation) object, which references the discount application it originated from. * [Discount​Code​Application.targetType](https://shopify.dev/docs/api/storefront/latest/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.targetType) OBJECT Records the configuration and intent of a [discount code](https://help.shopify.com/manual/discounts/discount-methods/discount-codes) when a customer applies it. This includes the code string, allocation method, target type, and discount value at the time of application. The [`applicable`](https://shopify.dev/docs/api/storefront/latest/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.applicable) field indicates whether the code was successfully applied. *** **Note:** To see the actual amounts discounted on specific line items or shipping lines, use the \\\Discount\Allocation\\\ object instead. *** * [Manual​Discount​Application.targetType](https://shopify.dev/docs/api/storefront/latest/objects/ManualDiscountApplication#field-ManualDiscountApplication.fields.targetType) OBJECT A discount created manually by a merchant, as opposed to [automatic discounts](https://help.shopify.com/manual/discounts/discount-methods/automatic-discounts) or [discount codes](https://help.shopify.com/manual/discounts/discount-methods/discount-codes). Implements the [`DiscountApplication`](https://shopify.dev/docs/api/storefront/current/interfaces/DiscountApplication) interface and includes a title, optional description, and the discount value as either a fixed amount or percentage. * [Script​Discount​Application.targetType](https://shopify.dev/docs/api/storefront/latest/objects/ScriptDiscountApplication#field-ScriptDiscountApplication.fields.targetType) OBJECT A discount application created by a Shopify Script. Implements the [`DiscountApplication`](https://shopify.dev/docs/api/storefront/current/interfaces/DiscountApplication) interface and captures the discount's value, allocation method, and targeting rules at the time the script applied it. *** ## Map ### Fields with this enum * [Automatic​Discount​Application.targetType](https://shopify.dev/docs/api/storefront/latest/objects/AutomaticDiscountApplication#field-AutomaticDiscountApplication.fields.targetType) * [Cart​Automatic​Discount​Allocation.targetType](https://shopify.dev/docs/api/storefront/latest/objects/CartAutomaticDiscountAllocation#field-CartAutomaticDiscountAllocation.fields.targetType) * [Cart​Code​Discount​Allocation.targetType](https://shopify.dev/docs/api/storefront/latest/objects/CartCodeDiscountAllocation#field-CartCodeDiscountAllocation.fields.targetType) * [Cart​Custom​Discount​Allocation.targetType](https://shopify.dev/docs/api/storefront/latest/objects/CartCustomDiscountAllocation#field-CartCustomDiscountAllocation.fields.targetType) * [Cart​Discount​Application.targetType](https://shopify.dev/docs/api/storefront/latest/objects/CartDiscountApplication#field-CartDiscountApplication.fields.targetType) * [Discount​Code​Application.targetType](https://shopify.dev/docs/api/storefront/latest/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.targetType) * [Manual​Discount​Application.targetType](https://shopify.dev/docs/api/storefront/latest/objects/ManualDiscountApplication#field-ManualDiscountApplication.fields.targetType) * [Script​Discount​Application.targetType](https://shopify.dev/docs/api/storefront/latest/objects/ScriptDiscountApplication#field-ScriptDiscountApplication.fields.targetType)