---
title: "DiscountCustomerBuysValueInput"
description: >
  The input fields for prerequisite quantity or minimum purchase amount required 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-value-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-customer-buys-value-input.md'
---
# DiscountCustomerBuysValueInput

The input fields for prerequisite quantity or minimum purchase amount required for the discount.

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

## Type Signature

`DiscountCustomerBuysValueInput`

## Input Fields

* `amount`

  [Decimal](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/decimal.md)

  The prerequisite minimum purchase amount required for the discount to be applicable.

* `quantity`

  [Int](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/int.md)

  The quantity of prerequisite items.

## Schema Definition

```graphql
input DiscountCustomerBuysValueInput { 
	amount: Decimal
	quantity: Int 
}
```

## Input field from

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

  The quantity of prerequisite items.
  
  

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

