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

订单中符合条件的商品、每件商品的数量以及折扣总金额

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

## Type Signature

`DiscountCustomerGets`

## Fields

* `items`

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

  折扣适用的商品

* `value`

  [DiscountCustomerGetsValue!](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/unions/discount-customer-gets-value.md)

  授权数量和折扣值

## Schema Definition

```graphql
type DiscountCustomerGets { 
	items: DiscountItems
	value: DiscountCustomerGetsValue! 
}
```

## Field from

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

  订单中符合条件的商品、每件商品的数量以及折扣总优惠

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

  订单中符合条件的商品、每件商品的数量以及折扣总价值

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

  订单中符合条件的商品、每件商品的数量以及折扣总优惠

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

  订单中符合条件的商品、每件商品的数量以及折扣总价值

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

  订单中符合条件的商品、每件商品的数量以及折扣总优惠

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

  订单中符合条件的商品、每件商品的数量以及折扣总优惠

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

  订单中符合条件的商品、每件商品的数量以及折扣总价值

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

