---
title: DiscountApplicationTargetSelection - Customer 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: 2026-01
api_name: customer
type: enum
api_type: graphql
source_url:
  html: >-
    https://shopify.dev/docs/api/customer/latest/enums/DiscountApplicationTargetSelection
  md: >-
    https://shopify.dev/docs/api/customer/latest/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.targetSelection](https://shopify.dev/docs/api/customer/latest/objects/AutomaticDiscountApplication#field-AutomaticDiscountApplication.fields.targetSelection)

  OBJECT

  Captures the intentions of a discount that was automatically applied.

* [Discount​Application.targetSelection](https://shopify.dev/docs/api/customer/latest/interfaces/DiscountApplication#fields-targetSelection)

  INTERFACE

  Captures the intentions of a discount source at the time of application.

* [Discount​Code​Application.targetSelection](https://shopify.dev/docs/api/customer/latest/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.targetSelection)

  OBJECT

  Captures the intentions of a discount code at the time that it is applied.

* [Manual​Discount​Application.targetSelection](https://shopify.dev/docs/api/customer/latest/objects/ManualDiscountApplication#field-ManualDiscountApplication.fields.targetSelection)

  OBJECT

  Captures the intentions of a discount that was manually created.

* [Script​Discount​Application.targetSelection](https://shopify.dev/docs/api/customer/latest/objects/ScriptDiscountApplication#field-ScriptDiscountApplication.fields.targetSelection)

  OBJECT

  Captures 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/customer/latest/objects/AutomaticDiscountApplication#field-AutomaticDiscountApplication.fields.targetSelection)
* [Discount​Code​Application.targetSelection](https://shopify.dev/docs/api/customer/latest/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.targetSelection)
* [Manual​Discount​Application.targetSelection](https://shopify.dev/docs/api/customer/latest/objects/ManualDiscountApplication#field-ManualDiscountApplication.fields.targetSelection)
* [Script​Discount​Application.targetSelection](https://shopify.dev/docs/api/customer/latest/objects/ScriptDiscountApplication#field-ScriptDiscountApplication.fields.targetSelection)
