---
title: "DiscountAmountInput"
description: "The amount of the discount."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-amount-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-amount-input.md'
---
# DiscountAmountInput

The amount of the discount.

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

## Type Signature

`DiscountAmountInput`

## Input Fields

* `amount`

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

  The value of the discount.

* `appliesOnEachItem`

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

  If true, the discount applies to each eligible item. If false, the amount will be distributed among all eligible items.

## Schema Definition

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

## Input field from

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

  The value of the discount. Not applicable to Discount on the lowest-priced item(DOLI) discount.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

