Skip to main content
Anchor to DiscountApplicationTargetSelection

DiscountApplicationTargetSelection

enum

The lines on the order to which the discount is applied, of the type defined by the discount application's targetType. For example, the value ENTITLED, combined with a targetType of LINE_ITEM, applies the discount on all line items that are entitled to the discount. The value ALL, combined with a targetType of SHIPPING_LINE, applies the discount on all shipping lines.

The discount is allocated onto all the lines.

The discount is allocated onto only the lines that it's entitled for.

The discount is allocated onto explicitly chosen lines.


Was this section helpful?

•OBJECT

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

•OBJECT

A discount that is automatically applied to an order that is being edited.

•INTERFACE

A discount application involved in order editing that might be newly added or have new changes applied.

•OBJECT

A discount code that is applied to an order that is being edited.

•OBJECT

Represents a discount that was manually created for an order that is being edited.

•OBJECT

A discount created by a Shopify script for an order that is being edited.

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

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

•OBJECT

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

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

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


Was this section helpful?