Update a promotion
Updates an existing promotion.
/promotions/{id}AuthorizationBearer token (JWT) · headerrequiredidintegerrequiredID of the promotion to update.
application/jsonshop_idintegerrequiredID of the shop (required on create)
namestringrequiredstatusstringactiveinactivecumulativebooleanWhether this promotion can stack with others. Defaults to true.
discount_typestringrequiredfixedpercentagefree-shippingdiscountnumberrequiredDiscount value — a percentage (0–100) or a fixed amount in cents.
activation_modestringrequiredHow the promotion is activated. code requires a coupon code; auto applies automatically to eligible orders; fulfillment activates for a specific fulfillment method; payment activates for a specific payment method.
codeautofulfillmentpaymentcodestringCoupon code (required when activation_mode is code).
fulfillment_methodintegerFulfillment method ID (required when activation_mode is fulfillment).
payment_method_idintegerPayment method ID (required when activation_mode is payment).
usage_limitintegerMaximum total redemptions. Unlimited if omitted.
per_user_limitintegerMaximum redemptions per customer. Unlimited if omitted.
starts_atstring<date-time>expires_atstring<date-time>price_range_fromintegerMinimum order subtotal in cents for the promotion to apply.
price_range_tointegerMaximum order subtotal in cents for the promotion to apply.
product_range_fromintegerMinimum number of qualifying products required in the cart.
product_range_tointegerMaximum number of qualifying products allowed in the cart.
product_discount_group_idintegerID of the group whose products receive the discount.
product_discount_group_typestringAllProductsAllBundlesCollectionProductTypeVendorTagProductproduct_discount_group_filter_modestringWhich items within the discount group receive the discount.
allall_exceptsingle_cheapestsingle_most_expensiveall_but_cheapestall_but_most_expensivecheapest_halfmost_expensive_halfcheapest_thirdmost_expensive_thirdcheapest_fourthmost_expensive_fourthsingle_cheapest_from_count_groupsingle_most_expensive_from_count_groupcheapest_half_from_count_groupmost_expensive_half_from_count_groupcheapest_third_from_count_groupmost_expensive_third_from_count_groupcheapest_fourth_from_count_groupmost_expensive_fourth_from_count_groupproduct_count_group_idintegerGroup used to count qualifying products (for count-gated discounts).
product_count_group_typestringAllProductsAllBundlesCollectionProductTypeVendorTagProductprice_list_idintegerRestrict the promotion to orders using this price list.
apply_tagstringTag to apply to the order when this promotion is used.
Promotion updated
Promotion not found