on GitHub" data-tooltip-id=":R1blcldb:">v2.5.1·
This documentation provides a reference to the ApplicationMethod data model. It belongs to the Promotion Module.
id
PrimaryKeyModifier<IdProperty>type
EnumProperty<typeof ApplicationMethodType>fixed
, the promotion discounts a fixed amount. If it's percentage
, the promotion discounts a percentage.target_type
EnumProperty<typeof ApplicationMethodTargetType>items
mean the promotion applies to the cart's items; shipping_methods
means the promotion applies to the cart's shipping methods; order
means the promotion applies on the entire order.value
BigNumberPropertyOptionalcurrency_code
TextPropertyOptionalmax_quantity
NumberPropertyOptionalapply_to_quantity
NumberPropertyOptionalbuyget
promotion's condition. For example, if the promotion is a "Buy 2 shirts get 1 free", the value of this attribute is 1
.buy_rules_min_quantity
NumberPropertyOptionalbuyget
promotion to be applied. For example, if the promotion is a "Buy 2 shirts get 1 free", the value of this attribute is 2
.each
means the discounted amount is applied on each applicable item; across
means the discounted amount is split accross the applicable items.