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

折扣的固定金额值，以及该金额是应用于每个有资格的商品还是均匀分布在所有有资格的商品上

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

## Type Signature

`DiscountAutomatic`

## Possible Types

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

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

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

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

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

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

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

## Schema Definition

```graphql
 DiscountAutomatic { 
	 
}
```

## Field from

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

  自动折扣对象

## Possible type of

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

  自动折扣，为客户提供特定产品、系列或整个订单的百分比折扣或固定金额折扣

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

  App自动折扣

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

  自动折扣，为客户提供买 X，送 Y (BXGY) 折扣。

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

  自动折扣，为客户的订单提供免费送货服务

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

  自动折扣，为客户提供特定产品、系列或整个订单的M件N元折扣

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

  自动折扣，为客户提供特定产品、系列或整个订单的第M件折扣

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

  自动折扣，为客户提供特定产品、系列或整个订单的免最低价折扣

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

