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

折扣值的类型及其应用方式

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

## Type Signature

`DiscountCustomerGetsValue`

## Possible Types

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

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

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

## Schema Definition

```graphql
 DiscountCustomerGetsValue { 
	 
}
```

## Field from

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

  授权数量和折扣值

## Possible type of

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

  折扣的固定金额值，以及该金额是应用于每个有资格的商品还是均匀分布在所有有资格的商品上

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

  折扣效果，为客户提供订单中指定商品一定比例的折扣

* [DiscountOnQuantity](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-on-quantity.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)。

