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

用于如何应用折扣的输入字段。目前，仅支持百分比折扣

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

## Type Signature

`DiscountEffectInput`

## Input Fields

* `percentage`

  [Float](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/float.md)

  折扣的百分比值。值必须介于 0.00 - 1.00 之间

* `amount`

  [Decimal](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/decimal.md)

  优惠金额

## Schema Definition

```graphql
input DiscountEffectInput { 
	percentage: Float
	amount: Decimal 
}
```

## Input field from

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

  用于如何应用折扣的输入字段。目前，仅支持百分比折扣

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

