---
title: "DiscountCustomerSelectionInput"
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/discounts-and-marketing/inputs/discount-customer-selection-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-selection-input.md'
---
# DiscountCustomerSelectionInput

可以使用此折扣的客户的输入字段

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

## Type Signature

`DiscountCustomerSelectionInput`

## Input Fields

* `customerSegments`

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

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

* `customers`

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

  要从客户列表中添加或删除的客户 ID 列表

* `all`

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

  是否所有客户都可以使用此折扣

## Schema Definition

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

## Input field from

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

  可以使用折扣的顾客

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

  有资格使用折扣的客户

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

  有资格使用折扣的客户

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

