---
title: DiscountApplicationAllocationMethod - Storefront API
description: >-
  Controls how a discount's value is distributed across entitled lines. A
  discount

  can either spread its value across all entitled lines or apply the full value
  to

  each line individually.


  Used by the
  [`DiscountApplication`](/docs/api/storefront/2026-10/interfaces/DiscountApplication)
  interface and its implementations to capture the intentions of a discount
  source

  at the time of application.
api_version: 2026-10
source_url:
  html: >-
    https://shopify.dev/docs/api/storefront/latest/enums/DiscountApplicationAllocationMethod
  md: >-
    https://shopify.dev/docs/api/storefront/latest/enums/DiscountApplicationAllocationMethod.md
api_name: storefront
api_type: graphql
type: enum
---

# Discount​Application​Allocation​Method

enum

Controls how a discount's value is distributed across entitled lines. A discount can either spread its value across all entitled lines or apply the full value to each line individually.

Used by the [`DiscountApplication`](https://shopify.dev/docs/api/storefront/2026-10/interfaces/DiscountApplication) interface and its implementations to capture the intentions of a discount source at the time of application.

## Valid values

* ACROSS

  The value is spread across all entitled lines.

* EACH

  The value is applied onto every entitled line.

* ONE

  Deprecated

***

## Fields

* [Automatic​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/AutomaticDiscountApplication#field-AutomaticDiscountApplication.fields.allocationMethod)

  OBJECT

  An [automatic discount](https://help.shopify.com/manual/discounts/discount-methods/automatic-discounts) applied to a cart or checkout without requiring a discount code. Implements the [`DiscountApplication`](https://shopify.dev/docs/api/storefront/current/interfaces/DiscountApplication) interface.

  Includes the discount's title, value, and allocation details that specify how the discount amount distributes across entitled line items or shipping lines.

* [Base​Cart​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/interfaces/BaseCartDiscountApplication#fields-allocationMethod)

  INTERFACE

  Captures the intent of a discount source at the time it was applied to a cart. This includes the discount value, how it's allocated across entitled items, and which line types it targets.

  The actual discounted amounts on specific cart lines are represented by [`CartDiscountAllocation`](https://shopify.dev/docs/api/storefront/current/interfaces/CartDiscountAllocation) objects, which reference this application.

* [Cart​Automatic​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/CartAutomaticDiscountApplication#field-CartAutomaticDiscountApplication.fields.allocationMethod)

  OBJECT

  The discount application automatically applied based on prerequisites.

* [Cart​Code​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/CartCodeDiscountApplication#field-CartCodeDiscountApplication.fields.allocationMethod)

  OBJECT

  The discount application applied using a discount code.

* [Cart​Custom​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/CartCustomDiscountApplication#field-CartCustomDiscountApplication.fields.allocationMethod)

  OBJECT

  The discount application applied by a custom script or function.

* [Cart​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/CartDiscountApplication#field-CartDiscountApplication.fields.allocationMethod)

  OBJECT

  Captures the intent of a discount source at the time it was applied to a cart. This includes the discount value, how it's allocated across entitled items, and which line types it targets.

  The actual discounted amounts on specific cart lines are represented by [`CartDiscountAllocation`](https://shopify.dev/docs/api/storefront/current/interfaces/CartDiscountAllocation) objects, which reference this application.

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

  INTERFACE

  Captures the intent of a discount at the time it was applied. Each implementation represents a different discount source, such as [automatic discounts](https://help.shopify.com/manual/discounts/discount-methods/automatic-discounts), [discount codes](https://help.shopify.com/manual/discounts/discount-methods/discount-codes), and manual discounts.

  The actual discounted amount on a line item or shipping line is represented by the [`DiscountAllocation`](https://shopify.dev/docs/api/storefront/current/objects/DiscountAllocation) object, which references the discount application it originated from.

* [Discount​Code​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.allocationMethod)

  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="https://shopify.dev/docs/api/storefront/current/objects/DiscountAllocation">\<code>\<span class="PreventFireFoxApplyingGapToWBR">Discount\<wbr/>Allocation\</span>\</code>\</a> object instead.

  ***

* [Manual​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/ManualDiscountApplication#field-ManualDiscountApplication.fields.allocationMethod)

  OBJECT

  A discount created manually by a merchant, as opposed to [automatic discounts](https://help.shopify.com/manual/discounts/discount-methods/automatic-discounts) or [discount codes](https://help.shopify.com/manual/discounts/discount-methods/discount-codes). Implements the [`DiscountApplication`](https://shopify.dev/docs/api/storefront/current/interfaces/DiscountApplication) interface and includes a title, optional description, and the discount value as either a fixed amount or percentage.

* [Script​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/ScriptDiscountApplication#field-ScriptDiscountApplication.fields.allocationMethod)

  OBJECT

  A discount application created by a Shopify Script. Implements the [`DiscountApplication`](https://shopify.dev/docs/api/storefront/current/interfaces/DiscountApplication) interface and captures the discount's value, allocation method, and targeting rules at the time the script applied it.

***

## Map

### Fields with this enum

* [Automatic​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/AutomaticDiscountApplication#field-AutomaticDiscountApplication.fields.allocationMethod)
* [Cart​Automatic​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/CartAutomaticDiscountApplication#field-CartAutomaticDiscountApplication.fields.allocationMethod)
* [Cart​Code​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/CartCodeDiscountApplication#field-CartCodeDiscountApplication.fields.allocationMethod)
* [Cart​Custom​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/CartCustomDiscountApplication#field-CartCustomDiscountApplication.fields.allocationMethod)
* [Cart​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/CartDiscountApplication#field-CartDiscountApplication.fields.allocationMethod)
* [Discount​Code​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/DiscountCodeApplication#field-DiscountCodeApplication.fields.allocationMethod)
* [Manual​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/ManualDiscountApplication#field-ManualDiscountApplication.fields.allocationMethod)
* [Script​Discount​Application.allocationMethod](https://shopify.dev/docs/api/storefront/latest/objects/ScriptDiscountApplication#field-ScriptDiscountApplication.fields.allocationMethod)
