---
title: "DiscountCustomerSegmentsInput"
description: >
  Input field for customer groups to be added to or removed from the discount eligibility list
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/discount-customer-segments-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/inputs/discount-customer-segments-input.md'
---
# DiscountCustomerSegmentsInput

Input field for customer groups to be added to or removed from the discount eligibility list


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

## Type Signature

`DiscountCustomerSegmentsInput`

## Input Fields

* `add`

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

  List of customer segments to be added to the current customer segment list

* `remove`

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

  List of customer segments to be removed from the current customer segment list

## Schema Definition

```graphql
input DiscountCustomerSegmentsInput { 
	add: [ID]
	remove: [ID] 
}
```

## Input field from

* [DiscountCustomerSelectionInput](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-selection-input.md).customerSegments

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

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

