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

折扣所需的先决数量或最低购买金额的输入字段

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

## Type Signature

`DiscountCustomerBuysValueInput`

## Input Fields

* `quantity`

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

  必备物品的数量

* `amount`

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

  适用折扣所需的最低购买金额

## Schema Definition

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

## Input field from

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

  必备物品的数量。
  

## Error Handling

关于更多通用错误码说明，参考：[状态码和错误码](https://developer.shopline.com/zh-hans-cn/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes)。

