Skip to content

Create Cart Rule

EndpointMethod
/api/admin/marketing/cart-rulesPOST

Request Body

FieldTypeRequiredNotes
namestringyes
descriptionstringno
channelsint[]yes
customer_groupsint[]yes
starts_fromdatetimeno
ends_tilldatetimeno
statusintno0/1.
coupon_typeintyes1 = no coupon, 2 = specific coupon.
action_typeenumyesby_percent, by_fixed, cart_fixed, buy_x_get_y.
discount_amountnumberyes
condition_typeintno0/1.
conditionsarrayno

Permission: marketing.promotions.cart_rules.create.

Released under the MIT License.