---
title: "DiscountAutomaticApp"
description: "App automatic discount."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-app'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-automatic-app.md'
---
# DiscountAutomaticApp

App automatic discount.

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

## Type Signature

`DiscountAutomaticApp`

## Fields

* `appDiscountType`

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

  Provide the application discount type for the discount type.

* `asyncUsageCount`

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

  The number of times the discount has been redeemed. This value is updated asynchronously and may not match the actual usage count.

* `combinesWith`

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

  Which discount classes the discount can combine with.

* `createdAt`

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

  The time when discount was created.
  

* `discountClass`

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

  The class of the discount for combining purposes.

* `discountId`

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

  Discount ID.
  
  

* `endsAt`

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

  The time when discount ends. For open-ended discounts, use null.

* `startsAt`

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

  start time.

* `status`

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

  The status of the discount.

* `title`

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

  Discount title.
  

* `updatedAt`

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

  update time

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

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

  The updated automatic app discount.

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

  The created app 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).

