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

用于定位一组有资格享受折扣的客户的类型

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

## Type Signature

`DiscountCustomerSelection`

## Possible Types

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

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

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

## Schema Definition

```graphql
 DiscountCustomerSelection { 
	 
}
```

## Field from

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

  可以使用折扣的顾客

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

  可以使用折扣的顾客

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

  可以使用折扣的顾客

## Possible type of

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

  DiscountCustomerAll 对象使您可以针对所有具有折扣资格的客户。
  

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

  包含折扣适用的客户的客户细分列表

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

  有资格享受折扣的客户列表

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

