---
title: DiscountCustomerSelection - GraphQL Admin
description: >-
  The type used for targeting a set of customers who are eligible for the

  discount. For example, the discount might be available to all customers or it

  might only be available to a specific set of customers. You can define the set

  of customers by targeting a list of customer segments, or by targeting a list
  of

  specific customers.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/admin-graphql/latest/unions/DiscountCustomerSelection
  md: >-
    https://shopify.dev/docs/api/admin-graphql/latest/unions/DiscountCustomerSelection.md
api_name: admin
api_type: graphql
type: union
---

# Discount​Customer​Selection

union

Requires Apps must have `read_discounts` access scope.

The type used for targeting a set of customers who are eligible for the discount. For example, the discount might be available to all customers or it might only be available to a specific set of customers. You can define the set of customers by targeting a list of customer segments, or by targeting a list of specific customers.

## Fields with this union

### Deprecated fields with this union

* [Discount​Code​App.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountCodeApp#field-DiscountCodeApp.fields.customerSelection)

  OBJECT

  Deprecated

* [Discount​Code​Basic.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountCodeBasic#field-DiscountCodeBasic.fields.customerSelection)

  OBJECT

  Deprecated

* [Discount​Code​Bxgy.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountCodeBxgy#field-DiscountCodeBxgy.fields.customerSelection)

  OBJECT

  Deprecated

* [Discount​Code​Free​Shipping.customerSelection](https://shopify.dev/docs/api/admin-graphql/latest/objects/DiscountCodeFreeShipping#field-DiscountCodeFreeShipping.fields.customerSelection)

  OBJECT

  Deprecated

***

```graphql
union DiscountCustomerSelection = DiscountCustomerAll | DiscountCustomerSegments | DiscountCustomerSelectionUnknown | DiscountCustomers
```
