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

An app discount type

- **Required Scopes:** `read_discounts`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Query

## Required Permissions

* `read_discounts`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md) for more information about how to obtain the token.

## Arguments

* `functionId`

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

  function Id

## Returns

* `appKey`

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

  Provide the client ID of the application applying the discount type.

* `description`

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

  description

* `discountClass`

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

  The class of the app discount type.
  
  

* `functionId`

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

  Function ID

* `targetType`

  [DiscountApplicationTargetType](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/enums/discount-application-target-type.md)

  Target type for applying the discount type.

* `title`

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

  title

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

