---
title: "DiscountCustomerBuysValue"
description: "The prerequisite for the discount to be applicable."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/unions/discount-customer-buys-value'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/customers/unions/discount-customer-buys-value.md'
---
# DiscountCustomerBuysValue

The prerequisite for the discount to be applicable.

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

## Type Signature

`DiscountCustomerBuysValue`

## Possible Types

* [DiscountQuantity](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-quantity.md)

* [DiscountPurchaseAmount](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-purchase-amount.md)

## Schema Definition

```graphql
 DiscountCustomerBuysValue { 
	 
}
```

## Field from

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

  The prerequisite for the discount to be applicable.

## Possible type of

* [DiscountQuantity](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-quantity.md)

  The number of items within the discount range.

* [DiscountPurchaseAmount](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-purchase-amount.md)

  The purchase amount with the discount applied.

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

