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

折扣必备商品和数量的输入字段。

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

## Input Fields

* `value`

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

  必备物品的数量。
  

* `items`

  [DiscountItemsInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-items-input.md)

  客户必须购买的商品。可通过商品 ID 或商品分类 ID 指定。在更新操作中，若为 `null` 或不传，则保持原值不变。

## Input field from

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

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

