ScriptDiscountApplication object

Script discount applications capture the intentions of a discount that was created by a Shopify Script.

Fields

allocationMethod (DiscountApplicationAllocationMethod!)

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

targetSelection (DiscountApplicationTargetSelection!)

Which lines of targetType that the discount is allocated over.

targetType (DiscountApplicationTargetType!)

The type of line that the discount is applicable towards.

title (String!)

The title of the application as defined by the Script.

value (PricingValue!)

The value of the discount application.

Implements

Deprecated fields

Show/Hide
description (String!) deprecated

The description of the application as defined by the Script.

Deprecation warning

Use title instead

Script discount applications capture the intentions of a discount that was created by a Shopify Script.

Fields

allocationMethod (DiscountApplicationAllocationMethod!)

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

targetSelection (DiscountApplicationTargetSelection!)

Which lines of targetType that the discount is allocated over.

targetType (DiscountApplicationTargetType!)

The type of line that the discount is applicable towards.

title (String!)

The title of the application as defined by the Script.

value (PricingValue!)

The value of the discount application.

Implements

Deprecated fields

Show/Hide
description (String!) deprecated

The description of the application as defined by the Script.

Deprecation warning

Use title instead

Script discount applications capture the intentions of a discount that was created by a Shopify Script.

Fields

allocationMethod (DiscountApplicationAllocationMethod!)

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

targetSelection (DiscountApplicationTargetSelection!)

Which lines of targetType that the discount is allocated over.

targetType (DiscountApplicationTargetType!)

The type of line that the discount is applicable towards.

title (String!)

The title of the application as defined by the Script.

value (PricingValue!)

The value of the discount application.

Implements

Deprecated fields

Show/Hide
description (String!) deprecated

The description of the application as defined by the Script.

Deprecation warning

Use title instead

Sign up for a Partner account to get started.

Sign up