价格规则适用的客户选择-PriceRuleCustomerSelection 对象
价格规则适用的客户选择。
所需的访问
read_price_rules 访问范围。
在本页面
连接数
- 客户(
[CustomerConnection!](https://shopify.dev/docs/admin-api/graphql/reference/customers/customer))
价格规则适用的客户列表。
| 争论 | 描述 |
|---|---|
after() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) |
返回指定游标之后的元素。 |
before() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) |
返回指定游标之前的元素。 |
first() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) |
返回n列表中的第一个元素。 |
last() [Int](https://shopify.dev/docs/admin-api/graphql/reference/scalar#int-2021-01) |
返回n列表中的最后一个元素。 |
query() [String](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01) |
支持的过滤器参数: + accepts_marketing+ country+ customer_date+ email+ last_abandoned_order_date+ order_date+ orders_count+ phone+ state+ tag+ total_spent+ updated_at请参阅详细的搜索语法。 |
reverse() [Boolean](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01) |
颠倒基础列表的顺序。 默认值: false |
savedSearchId() [ID](https://shopify.dev/docs/admin-api/graphql/reference/scalar#id-2021-01) |
现有已保存搜索的ID。搜索的查询字符串用作查询参数。 |
sortKey() [CustomerSortKeys](https://shopify.dev/docs/admin-api/graphql/reference/customers/customersortkeys) |
按给定键对基础列表进行排序。 默认值: ID |
字段
- forAllCustom**ers**(
[Boolean!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#boolean-2021-01))
价格规则是否适用于所有客户。 - savedSearches(
[[SavedSearch!]!](https://shopify.dev/docs/admin-api/graphql/reference/common-objects/savedsearch))
客户保存的搜索列表,其中包含可以使用价格规则的客户。
返回PriceRuleCustomerSelection的类型
[PriceRule.customerSelection](https://shopify.dev/docs/admin-api/graphql/reference/discounts-and-marketing/pricerule#customerselection-2021-01)
