Skip to main content
Anchor to CalculatedDiscountApplication

CalculatedDiscountApplication

interface

Requires read_order_edits access scope or read_returns access scope.

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

•DiscountApplicationAllocationMethod!
non-null

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

Show enum values
•DiscountApplicationLevel!
non-null

The level at which the discount was applied.

Show enum values
•String

The description of discount application. Indicates the reason why the discount was applied.

•DiscountClass

The class of the discount application: order, product or shipping. Returns null when the discount has no class, such as a manual discount.

Show enum values
•ID!
non-null

A globally-unique ID.

•DiscountApplicationTargetSelection!
non-null

How the discount amount is distributed on the discounted lines.

Show enum values
•DiscountApplicationTargetType!
non-null

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

Show enum values
•PricingValue!
non-null

The value of the discount application.

Show union types

Was this section helpful?

Anchor to Types implemented inTypes implemented in

•OBJECT

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

Show fields
•OBJECT

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

Show fields
•OBJECT

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

Show fields
•OBJECT

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

Show fields

Was this section helpful?