DiscountCodeApplication

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

Show definition

# Discount code applications capture the intentions of a discount code at

the time that it is applied onto an order.

type DiscountCodeApplication implements DiscountApplication { # The method by which the discount's value is allocated to its entitled items. allocationMethod: DiscountApplicationAllocationMethod!

# An ordered index which can be used to identify the discount application and indicate the precedence # of the discount application for calculations. index: Int!

# Which lines of targetType on the order that the discount is allocated over. targetSelection: DiscountApplicationTargetSelection!

# The type of line on the order that the discount is applicable towards. targetType: DiscountApplicationTargetType!

# The value of the discount application. value: PricingValue!

# The string identifying the discount code that was used at the time of application. code: String! }

Implements

Fields

allocationMethod   (DiscountApplicationAllocationMethod!)

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

Required access

read_ access scope

code   (String!)

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

Required access

read_ access scope

index   (Int!)

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

Required access

read_ access scope

targetSelection   (DiscountApplicationTargetSelection!)

Which lines of targetType on the order that the discount is allocated over.

Required access

read_ access scope

targetType   (DiscountApplicationTargetType!)

The type of line on the order that the discount is applicable towards.

Required access

read_ access scope

value   (PricingValue!)

The value of the discount application.

Required access

read_ access scope

Sign up for a Partner account to get started.

Sign up