UpdateApplicationMethodDTO
The attributes to update in the application method.
id
stringRequiredThe ID of the application method.
The type of the application method indicating how
the associated promotion is applied.
target_type
ApplicationMethodTargetTypeValuesThe target type of the application method indicating
whether the associated promotion is applied to the cart's items,
shipping methods, or the whole order.
allocation
ApplicationMethodAllocationValuesThe allocation value that indicates whether the associated promotion
is applied on each item in a cart or split between the items in the cart.
value
numberThe discounted amount applied by the associated promotion based on the
type
.max_quantity
null | numberThe max quantity allowed in the cart for the associated promotion to be applied.
buy_rules_min_quantity
null | numberThe minimum quantity required for a
buyget
promotion to be applied.
For example, if the promotion is a "Buy 2 shirts get 1 free", the
value of this attribute is 2
.apply_to_quantity
null | numberThe quantity that results from matching the
buyget
promotion's condition.
For example, if the promotion is a "Buy 2 shirts get 1 free", the value
of this attribute is 1
.promotion
string | PromotionDTOThe promotion of the application method.
Was this section helpful?