@@ -985,6 +985,8 @@ components:
985985 properties :
986986 discount :
987987 $ref : ' #/components/schemas/Discount'
988+ maximum_allowed_discount_amount :
989+ $ref : ' #/components/schemas/MaximumAllowedDiscountAmount'
988990 description : |-
989991 **Cart Value Action**
990992 Applies discount on the entire cart.
@@ -1054,6 +1056,8 @@ components:
10541056 properties :
10551057 discount :
10561058 $ref : ' #/components/schemas/Discount'
1059+ maximum_allowed_discount_amount :
1060+ $ref : ' #/components/schemas/MaximumAllowedDiscountAmount'
10571061 as_total :
10581062 type : boolean
10591063 description : |-
@@ -1128,13 +1132,17 @@ components:
11281132 type : string
11291133 description : The amount of discount (percentage off) to apply.
11301134 description : ' **Percentage Discount**'
1135+ required :
1136+ - percentage_amount
11311137 FixedDiscount :
11321138 title : Fixed Discount
11331139 type : object
11341140 properties :
11351141 fixed_amount :
11361142 $ref : ' #/components/schemas/Money'
11371143 description : ' **Fixed Discount**'
1144+ required :
1145+ - fixed_amount
11381146 Money :
11391147 title : Money
11401148 pattern : ' [0-9]+(\.[0-9]+)?'
@@ -1143,6 +1151,17 @@ components:
11431151 **Money**
11441152 Represents a monetary value in the store’s default currency.
11451153 example : ' 12.95'
1154+ MaximumAllowedDiscountAmount :
1155+ type : string
1156+ nullable : true
1157+ pattern : ' ^(0|([1-9][0-9]*))(\.[0-9]+)?$'
1158+ description : |
1159+ The maximum monetary value that can be applied as a discount. It can take value from 1 to 10000000.
1160+ The application of this maximum depends on the discount type:
1161+ - Discount on shipping: the max limit is distributed to the first number of shipping destinations until it is reached
1162+ - Discount on products: the max limit is distributed to the first number of eligible products until it is reached
1163+ - Discount on order subtotal: the max limit is checked against the order discount value
1164+ example : ' 10'
11461165 OptionalCursorCollectionMeta :
11471166 title : Collection Meta
11481167 type : object
@@ -1939,8 +1958,8 @@ components:
19391958 data :
19401959 - id : 1
19411960 redemption_type : AUTOMATIC
1942- name : Buy Product X Get Free Shipping
1943- display_name : WOW!!! FREE SHIPPING for Product X
1961+ name : Buy Product worth X Get Y% off upto Z
1962+ display_name : Shop for X and get Y% off upto Z
19441963 created_from : api
19451964 channels :
19461965 - id : 1
@@ -1961,7 +1980,8 @@ components:
19611980 - action :
19621981 cart_value :
19631982 discount :
1964- fixed_amount : ' 12.95'
1983+ percentage_amount : ' 10'
1984+ maximum_allowed_discount_amount : ' 20'
19651985 apply_once : true
19661986 stop : true
19671987 condition :
0 commit comments