---
title: "DiscountAutomatic"
description: >
  The fixed amount value of a discount, and whether the amount is applied to each entitled item or spread evenly across the entitled items.
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-automatic'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/unions/discount-automatic.md'
---
# DiscountAutomatic

The fixed amount value of a discount, and whether the amount is applied to each entitled item or spread evenly across the entitled items.

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

## Type Signature

`DiscountAutomatic`

## Possible Types

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

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

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

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

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

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

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

## Schema Definition

```graphql
 DiscountAutomatic { 
	 
}
```

## Field from

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

  The automatic discount object.

## Possible type of

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

  A basic automatic discount that provides customers with a percentage or fixed amount off specific products, collections, or the entire order.

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

  App automatic discount.

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

  Buy X Get Y (BXGY) automatic discount.

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

  automatic discount that offers customers free shipping.
  

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

  An automatic discount that offers customers a price for multiple items, or fixed amount discount, on specific products, collections, or the entire order.

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

  An automatic discount that offers customers a Discount on Nth item(DONI) discount.

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

  An automatic discount that offers customers a 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).

