---
title: "DiscountAutomaticApp"
description: "App自动折扣"
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/objects/discount-automatic-app'
  md: 'https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-app.md'
---
# DiscountAutomaticApp

App自动折扣

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

## Type Signature

`DiscountAutomaticApp`

## Fields

* `appDiscountType`

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

  提供折扣类型的应用程序折扣类型

* `asyncUsageCount`

  [Int](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/int.md)

  折扣已使用的次数。该值是异步更新的，可能与实际使用计数不同

* `combinesWith`

  [DiscountCombinesWith](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-combines-with.md)

  确定折扣可以与哪些折扣级别结合

* `createdAt`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/date.md)

  创建折扣的日期和时间

* `discountClass`

  [DiscountClass](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/enums/discount-class.md)

  用于合并目的的折扣类别

* `discountId`

  [ID](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/id.md)

  折扣 ID

* `endsAt`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/date.md)

  折扣结束的日期和时间。对于无限期折扣，请使用 null

* `startsAt`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/date.md)

  折扣开始的日期和时间

* `status`

  [DiscountStatus](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/discounts-and-marketing/enums/discount-status.md)

  折扣的状态

* `title`

  [String](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/string.md)

  折扣的标题

* `updatedAt`

  [Date](https://developer.shopline.com/zh-hans-cn/docs/admin-graph-ql-api/common/scalars/date.md)

  折扣更新的日期和时间

## Schema Definition

```graphql
type DiscountAutomaticApp { 
	appDiscountType: AppDiscountType
	asyncUsageCount: Int
	combinesWith: DiscountCombinesWith
	createdAt: Date
	discountClass: DiscountClass
	discountId: ID
	endsAt: Date
	startsAt: Date
	status: DiscountStatus
	title: String
	updatedAt: Date 
}
```

## Field from

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

  创建的应用程序折扣

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

  更新后的自动应用程序折扣

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

