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

用于定位折扣资格所需的商品或可能应用折扣的商品的类型

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

## Type Signature

`DiscountItems`

## Possible Types

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

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

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

## Schema Definition

```graphql
 DiscountItems { 
	 
}
```

## Field from

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

  适用折扣所需的商品

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

  折扣适用的商品

## Possible type of

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

  将购物车中的所有商品定位为指定折扣

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

  折扣可以作为先决条件的集合列表或可以应用折扣的集合列表

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

  折扣可作为先决条件的产品和产品变型的列表，或可应用折扣的产品和产品变型的列表

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

