---
title: "DiscountCustomerBuysInput"
description: "The input fields for prerequisite items and quantity for the discount."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-buys-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-buys-input.md'
---
# DiscountCustomerBuysInput

The input fields for prerequisite items and quantity for the discount.

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

## Input Fields

* `value`

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

  The quantity of prerequisite items.
  
  

* `items`

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

  The items that the customer must purchase, which can be specified by product IDs or collection IDs. If `null` or omitted during an update, the original value remains unchanged.

## Input field from

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

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

