---
title: "DiscountEffectInput"
description: >
  Input field for how to apply the discount. Currently, only percentage discounts are supported.
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-effect-input'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/inputs/discount-effect-input.md'
---
# DiscountEffectInput

Input field for how to apply the discount. Currently, only percentage discounts are supported.

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

## Type Signature

`DiscountEffectInput`

## Input Fields

* `percentage`

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

  The percentage value of the discount. Value must be between 0.00 - 1.00.

* `amount`

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

  Discount amount

## Schema Definition

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

## Input field from

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

  The input fields for how the discount will be applied. Currently, only percentage off is supported.

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

