---
title: ScriptDiscountApplication - Storefront API
description: |-
  A discount application created by a Shopify Script. Implements the [`DiscountApplication`](/docs/api/storefront/2026-10/interfaces/DiscountApplication)
  interface and captures the discount's value, allocation method, and targeting
  rules at the time the script applied it.
api_version: 2026-10
source_url:
  html: https://shopify.dev/docs/api/storefront/latest/objects/scriptdiscountapplication
  md: https://shopify.dev/docs/api/storefront/latest/objects/scriptdiscountapplication.md
---

# Script​Discount​Application

object

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

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

* 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.

* title

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

  non-null

  The title of the application as defined by the Script.

* 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

***

## ScriptDiscountApplication Implements

### Implements

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