---
title: "DiscountEffect"
description: >
  Type of discount to be applied. Currently, only percentage-based 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/unions/discount-effect'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/unions/discount-effect.md'
---
# DiscountEffect

Type of discount to be applied. Currently, only percentage-based discounts are supported.

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

## Type Signature

`DiscountEffect`

## Possible Types

* [DiscountAmount](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-amount.md)

* [DiscountPercentage](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-percentage.md)

## Schema Definition

```graphql
 DiscountEffect { 
	 
}
```

## Field from

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

  The impact of the discount on eligible items.

## Possible type of

* [DiscountAmount](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-amount.md)

  The fixed discount amount and whether it applies to each eligible item or is evenly distributed across all eligible items.

* [DiscountPercentage](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-percentage.md)

  The discount effect, giving customers a percentage off certain items in their order.

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

