---
title: DiscountCodeApplication - Storefront API
description: >-
  Records the configuration and intent of a [discount

  code](https://help.shopify.com/manual/discounts/discount-methods/discount-codes)

  when a customer applies it. This includes the code string, allocation method,

  target type, and discount value at the time of application. The
  [`applicable`](https://shopify.dev/docs/api/storefront/latest/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.applicable)

  field indicates whether the code was successfully applied.


  > Note:

  > To see the actual amounts discounted on specific line items or shipping
  lines, use the
  [`DiscountAllocation`](/docs/api/storefront/2026-10/objects/DiscountAllocation)

  object instead.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/objects/DiscountCodeApplication
  md: >-
    https://shopify.dev/docs/api/storefront/latest/objects/DiscountCodeApplication.md
api_name: storefront
api_type: graphql
type: object
---

# Discount​Code​Application

object

Records the configuration and intent of a [discount code](https://help.shopify.com/manual/discounts/discount-methods/discount-codes) when a customer applies it. This includes the code string, allocation method, target type, and discount value at the time of application. The [`applicable`](https://shopify.dev/docs/api/storefront/latest/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.applicable) field indicates whether the code was successfully applied.

***

**Note:** To see the actual amounts discounted on specific line items or shipping lines, use the \<a href="/docs/api/storefront/2026-10/objects/DiscountAllocation">\<code>\<span class="PreventFireFoxApplyingGapToWBR">Discount\<wbr/>Allocation\</span>\</code>\</a> object instead.

***

## Fields

* allocation​Method

  [Discount​Application​Allocation​Method!](https://shopify.dev/docs/api/storefront/latest/enums/DiscountApplicationAllocationMethod)

  non-null

  The method by which the discount's value is allocated to its entitled items.

* applicable

  [Boolean!](https://shopify.dev/docs/api/storefront/latest/scalars/Boolean)

  non-null

  Specifies whether the discount code was applied successfully.

* code

  [String!](https://shopify.dev/docs/api/storefront/latest/scalars/String)

  non-null

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

* target​Selection

  [Discount​Application​Target​Selection!](https://shopify.dev/docs/api/storefront/latest/enums/DiscountApplicationTargetSelection)

  non-null

  Which lines of targetType that the discount is allocated over.

* target​Type

  [Discount​Application​Target​Type!](https://shopify.dev/docs/api/storefront/latest/enums/DiscountApplicationTargetType)

  non-null

  The type of line that the discount is applicable towards.

* value

  [Pricing​Value!](https://shopify.dev/docs/api/storefront/latest/unions/PricingValue)

  non-null

  The value of the discount application.

***

## Map

No referencing types

***

## Interfaces

* [Discount​Application](https://shopify.dev/docs/api/storefront/latest/interfaces/DiscountApplication)

  interface

***

## DiscountCodeApplication Implements

### Implements

* [Discount​Application](https://shopify.dev/docs/api/storefront/latest/interfaces/DiscountApplication)
