You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`is_active` (Boolean) Only active discount can be applied to the cart
170
170
-`key` (String) User-specific unique identifier for a cart discount. Must be unique across a project
171
171
-`requires_discount_code` (Boolean) States whether the discount can only be used in a connection with a [DiscountCode](https://docs.commercetools.com/api/projects/discountCodes#discountcode)
172
-
-`stacking_mode` (String) Specifies whether the application of this discount causes the following discounts to be ignored
172
+
-`stacking_mode` (String) Specifies whether the application of this discount causes the following discounts to be ignored. Can be either Stacking or StopAfterThisDiscount
173
173
-`target` (Block List, Max: 1) Empty when the value has type giftLineItem, otherwise a [CartDiscountTarget](https://docs.commercetools.com/api/projects/cartDiscounts#cartdiscounttarget) (see [below for nested schema](#nestedblock--target))
-`type` (String) Supports lineItems, customLineItems, multiBuyLineItems, multiBuyCustomLineItems, shipping or totalPrice
226
226
227
227
Optional:
228
228
229
-
-`discounted_quantity` (Number) MultiBuyLineItems/MultiBuyCustomLineItems target specific fields
230
-
-`max_occurrence` (Number) MultiBuyLineItems/MultiBuyCustomLineItems target specific fields
231
-
-`predicate` (String) LineItems/CustomLineItems/MultiBuyLineItems/MultiBuyCustomLineItems target specific fields
232
-
-`selection_mode` (String) MultiBuyLineItems/MultiBuyCustomLineItems target specific fields
233
-
-`trigger_quantity` (Number) MultiBuyLineItems/MultiBuyCustomLineItems target specific fields
229
+
-`discounted_quantity` (Number) MultiBuyLineItems or MultiBuyCustomLineItems target specific fields. If set for another target the value will be ignored
230
+
-`max_occurrence` (Number) MultiBuyLineItems or MultiBuyCustomLineItems target specific fields. If set for another target the value will be ignored
231
+
-`predicate` (String) LineItems, CustomLineItems, MultiBuyLineItems or MultiBuyCustomLineItems target specific fields. If set for another target the value will be ignored
232
+
-`selection_mode` (String) MultiBuyLineItems or MultiBuyCustomLineItems target specific fields. Can be either Cheapest or MostExpensive. If set for another target the value will be ignored
233
+
-`trigger_quantity` (Number) MultiBuyLineItems or MultiBuyCustomLineItems target specific fields. If set for another target the value will be ignored
-`description` (Map of String) [LocalizedString](https://docs.commercetools.com/api/types#localizedstring)
55
55
-`groups` (List of String) The groups to which this discount code belong
56
56
-`is_active` (Boolean)
57
-
-`max_applications` (Number) The discount code can only be applied maxApplications times
58
-
-`max_applications_per_customer` (Number) The discount code can only be applied maxApplicationsPerCustomer times per customer
57
+
-`max_applications` (Number) The discount code can only be applied the specified times overall. Note that due to an engine constraint 0 cannot be set for this field, so possible values are either larger than 0 or not set
58
+
-`max_applications_per_customer` (Number) The discount code can only be applied the specified times per customer. Note that due to an engine constraint 0 cannot be set for this field, so possible values are either larger than 0 or not set
59
59
-`name` (Map of String) [LocalizedString](https://docs.commercetools.com/api/types#localizedstring)
0 commit comments