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

折扣的金额

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

## Type Signature

`DiscountAmountInput`

## Input Fields

* `amount`

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

  折扣的金额

* `appliesOnEachItem`

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

  如果true，则折扣适用于每件有资格的商品。如果为 false，则该金额将分摊到所有有资格的项目中

## Schema Definition

```graphql
input DiscountAmountInput { 
	amount: Decimal
	appliesOnEachItem: Boolean 
}
```

## Input field from

* [DiscountCustomerGetsValueInput](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/customers/inputs/discount-customer-gets-value-input.md).discountAmount

  折扣的值（免最低价类型不适用）

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

