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

将应用的折扣类型。目前，仅支持百分比折扣

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

## Type Signature

`DiscountEffect`

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

## Schema Definition

```graphql
 DiscountEffect { 
	 
}
```

## Field from

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

  折扣对符合条件的商品的影响

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

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

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

