Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

Anchor to ScriptDiscountApplication

ScriptDiscountApplication

object

Script discount applications capture the intentions of a discount that was created by a Shopify Script for an order's line item or shipping line.

Discount applications don't represent the actual final amount discounted on a line (line item or shipping line). The actual amount discounted on a line is represented by the DiscountAllocation object.

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

Int!non-null

An ordered index that can be used to identify the discount application and indicate the precedence of the discount application for calculations.

How the discount amount is distributed on the discounted lines.

Whether the discount is applied on line items or shipping lines.

String!non-null

The title of the application as defined by the Script.

The value of the discount application.

String!non-nullDeprecated

The description of the application as defined by the Script. Use title instead.


Was this section helpful?


Was this section helpful?