---
title: "DiscountOnQuantity"
description: >
  The quantity of discounted items, the discount amount and how the discount is applied.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-on-quantity'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-on-quantity.md'
---
# DiscountOnQuantity

The quantity of discounted items, the discount amount and how the discount is applied.

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

## Type Signature

`DiscountOnQuantity`

## Fields

* `effect`

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

  The impact of the discount on eligible items.

* `quantity`

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

  A quantity of items in the context of a discount.

## Schema Definition

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

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

