---
title: "DiscountCustomerSegmentsInput"
description: "要添加或删除折扣的客户群的输入字段"
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/inputs/discount-customer-segments-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/inputs/discount-customer-segments-input.md'
---
# DiscountCustomerSegmentsInput

要添加或删除折扣的客户群的输入字段

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

## Type Signature

`DiscountCustomerSegmentsInput`

## Input Fields

* `add`

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

  要添加到当前客户细分列表的客户细分列表

* `remove`

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

  要从当前客户细分列表中删除的客户细分列表。

## Schema Definition

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

## Input field from

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

  要在客户细分列表中添加或删除的客户细分 ID 列表

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

