---
title: "DiscountApplication"
description: >
  Discount applications capture the intentions of a discount source at the time of application.
doc_type: graphql
doc_category: storefront
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/discount-application'
  md: 'https://developer.shopline.com/docs/storefront-api/common-objects/objects/discount-application.md'
---
# DiscountApplication

Discount applications capture the intentions of a discount source at the time of application.

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

## Type Signature

`DiscountApplication`

## Fields

* `code`

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

  The string identifying the discount code that was used at the time of application

* `valueType`

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

  The type of the discount application value.

* `targetType`

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

  The type of line that the discount is applicable towards.

* `value`

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

  The value of the discount application.

* `targetSelection`

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

  Which lines of targetType that the discount is allocated over.

## Schema Definition

```graphql
type DiscountApplication { 
	code: String
	valueType: String
	targetType: String
	value: String
	targetSelection: String! 
}
```

## Field from

* [DiscountAllocation](https://developer.shopline.com/docs/storefront-api/common-objects/objects/discount-allocation.md).discountApplication

  The discount this allocated amount originated from.

* [Checkout](https://developer.shopline.com/docs/storefront-api/checkouts/objects/checkout.md).discountApplications

  Discounts that have been applied on the checkout.

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/storefront-api/overview.md#status-and-error-codes).

