Skip to main content
Anchor to AutomaticDiscountApplication

AutomaticDiscountApplication

object

An automatic discount applied to a cart or checkout without requiring a discount code. Implements the DiscountApplication interface.

Includes the discount's title, value, and allocation details that specify how the discount amount distributes across entitled line items or shipping lines.

•DiscountApplicationAllocationMethod!
non-null

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

Show enum values
•DiscountApplicationTargetSelection!
non-null

Which lines of targetType that the discount is allocated over.

Show enum values
•DiscountApplicationTargetType!
non-null

The type of line that the discount is applicable towards.

Show enum values
•String!
non-null

The title of the application.

•PricingValue!
non-null

The value of the discount application.

Show union types

Was this section helpful?


Was this section helpful?