---
title: "DiscountCustomerSelection"
description: "Type used to identify a group of customers eligible for discounts"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/unions/discount-customer-selection'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/unions/discount-customer-selection.md'
---
# DiscountCustomerSelection

Type used to identify a group of customers eligible for discounts

- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Union

## Type Signature

`DiscountCustomerSelection`

## Possible Types

* [DiscountCustomerAll](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-customer-all.md)

* [DiscountCustomerSegments](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/discount-customer-segments.md)

* [DiscountCustomers](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/discount-customers.md)

## Schema Definition

```graphql
 DiscountCustomerSelection { 
	 
}
```

## Field from

* [DiscountCodeBasic](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-basic.md).customerSelection

  The customers that can use the discount.

* [DiscountCodeFreeShipping](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-free-shipping.md).customerSelection

  The customers that can use the discount.
  
  

* [DiscountCodeBxgy](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-code-bxgy.md).customerSelection

  The customers that can use the discount.

## Possible type of

* [DiscountCustomerAll](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-customer-all.md)

  The DiscountCustomerAll object lets you target all customers for discount eligibility.
  
  

* [DiscountCustomerSegments](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/discount-customer-segments.md)

  List of customer segments eligible for the discount
  
  

* [DiscountCustomers](https://developer.shopline.com/docs/admin-graph-ql-api/customers/objects/discount-customers.md)

  List of customers eligible for the discount
  

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

