Skip to main content
interface

Discount applications capture the intentions of a discount source at the time of application on an order's line items or shipping lines.

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.

DiscountApplicationAllocationMethod!
non-null

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.

DiscountApplicationTargetSelection!
non-null

How the discount amount is distributed on the discounted lines.

DiscountApplicationTargetType!
non-null

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

PricingValue!
non-null

The value of the discount application.


Was this section helpful?

Anchor to Types implemented inTypes implemented in

OBJECT

Automatic discount applications capture the intentions of a discount that was automatically applied.

DiscountApplicationAllocationMethod!
non-null

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.

DiscountApplicationTargetSelection!
non-null

How the discount amount is distributed on the discounted lines.

DiscountApplicationTargetType!
non-null

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

String!
non-null

The title of the discount application.

PricingValue!
non-null

The value of the discount application.

OBJECT

Discount code applications capture the intentions of a discount code at the time that it is applied onto an order.

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.

DiscountApplicationAllocationMethod!
non-null

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

String!
non-null

The string identifying the discount code that was used at the time of application.

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.

DiscountApplicationTargetSelection!
non-null

How the discount amount is distributed on the discounted lines.

DiscountApplicationTargetType!
non-null

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

PricingValue!
non-null

The value of the discount application.

OBJECT

Manual discount applications capture the intentions of a discount that was manually created for an order.

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.

DiscountApplicationAllocationMethod!
non-null

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

String

The description of the discount application.

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.

DiscountApplicationTargetSelection!
non-null

How the discount amount is distributed on the discounted lines.

DiscountApplicationTargetType!
non-null

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

String!
non-null

The title of the discount application.

PricingValue!
non-null

The value of the discount application.

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.

DiscountApplicationAllocationMethod!
non-null

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.

DiscountApplicationTargetSelection!
non-null

How the discount amount is distributed on the discounted lines.

DiscountApplicationTargetType!
non-null

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

String!
non-null

The title of the application as defined by the Script.

PricingValue!
non-null

The value of the discount application.

String!
non-nullDeprecated

Was this section helpful?