---
title: "DiscountOnQuantityInput"
description: >
  The quantity of the items that are discounted and the discount value. Not applicable to Price for multiple items (PFMI) and Discount on Nth item(DONI) 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-on-quantity-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-on-quantity-input.md'
---
# DiscountOnQuantityInput

The quantity of the items that are discounted and the discount value. Not applicable to Price for multiple items (PFMI) and Discount on Nth item(DONI) discount.

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

## Type Signature

`DiscountOnQuantityInput`

## Input Fields

* `quantity`

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

  The quantity of items that are discounted.

* `effect`

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

  The input fields for how the discount will be applied. Currently, only percentage off is supported.

## Schema Definition

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

## Input field from

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

  The quantity of the items that are discounted and the discount value.

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

