Skip to main content
Anchor to ScriptDiscountApplication

ScriptDiscountApplication

object

A discount application created by a Shopify Script. Implements the DiscountApplication interface and captures the discount's value, allocation method, and targeting rules at the time the script applied it.

•DiscountApplicationAllocationMethod!
non-null

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

•DiscountApplicationTargetSelection!
non-null

Which lines of targetType that the discount is allocated over.

•DiscountApplicationTargetType!
non-null

The type of line that the discount is applicable towards.

•String!
non-null

The title of the application as defined by the Script.

•PricingValue!
non-null

The value of the discount application.


Was this section helpful?


Was this section helpful?