---
title: "DiscountOnQuantityInput"
description: "商品的数量和折扣值的输入字段（第M件折扣、M件N元类型不适用）。"
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-on-quantity-input'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-on-quantity-input.md'
---
# DiscountOnQuantityInput

商品的数量和折扣值的输入字段（第M件折扣、M件N元类型不适用）。

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

## Type Signature

`DiscountOnQuantityInput`

## Input Fields

* `quantity`

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

  打折商品的数量

* `effect`

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

  用于如何应用折扣的输入字段。目前，仅支持百分比折扣

## Schema Definition

```graphql
input DiscountOnQuantityInput { 
	quantity: Int
	effect: DiscountEffectInput 
}
```

## Input field from

* [DiscountCustomerGetsValueInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/inputs/discount-customer-gets-value-input.md).discountOnQuantity

  折扣商品的数量和折扣金额

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

