---
title: "DiscountItems"
description: >
  Type of goods required for determining discount eligibility or the type of goods that may be eligible for applying discounts.
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/unions/discount-items'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/unions/discount-items.md'
---
# DiscountItems

Type of goods required for determining discount eligibility or the type of goods that may be eligible for applying discounts.

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

## Type Signature

`DiscountItems`

## Possible Types

* [AllDiscountItems](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/all-discount-items.md)

* [DiscountCollections](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/discount-collections.md)

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

## Schema Definition

```graphql
 DiscountItems { 
	 
}
```

## Field from

* [DiscountCustomerBuys](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-customer-buys.md).items

  Items required to qualify for the discount

* [DiscountCustomerGets](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-customer-gets.md).items

  The items to which the discount applies.
  
  

## Possible type of

* [AllDiscountItems](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/all-discount-items.md)

  Targets all items the cart for a specified discount.
  

* [DiscountCollections](https://developer.shopline.com/docs/admin-graph-ql-api/products-and-collections/objects/discount-collections.md)

  A list of collections that can serve as prerequisites for the discount or to which the discount can be applied.

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

  A list of products and product variants that can either serve as prerequisites for the discount or be eligible for the discount.
  
  

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

