---
title: "DiscountCustomerSelectionInput"
description: "The input fields for the customers who can use this discount."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-selection-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-selection-input.md'
---
# DiscountCustomerSelectionInput

The input fields for the customers who can use this discount.


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

## Type Signature

`DiscountCustomerSelectionInput`

## Input Fields

* `all`

  [Boolean](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/boolean.md)

  Whether all customers can use this discount.
  
  

* `customerSegments`

  [DiscountCustomerSegmentsInput](https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/discount-customer-segments-input.md)

  The list of customer segment IDs to add or remove from the list of customer segments.
  
  

* `customers`

  [DiscountCustomersInput](https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/discount-customers-input.md)

  The list of customer IDs to add or remove from the list of customers.
  

## Schema Definition

```graphql
input DiscountCustomerSelectionInput { 
	all: Boolean
	customerSegments: DiscountCustomerSegmentsInput
	customers: DiscountCustomersInput 
}
```

## Input field from

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

  The customers that are eligible to use the discount.

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

  The customers that can use the discount.

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

  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).

