---
title: "DiscountOnQuantity"
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/objects/discount-on-quantity'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-on-quantity.md'
---
# DiscountOnQuantity

折扣商品的数量、折扣金额以及折扣的应用方式

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

## Type Signature

`DiscountOnQuantity`

## Fields

* `effect`

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

  折扣对符合条件的商品的影响

* `quantity`

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

  折扣范围内的商品数量

## Schema Definition

```graphql
type DiscountOnQuantity { 
	effect: DiscountEffect
	quantity: DiscountQuantity 
}
```

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

