@@ -947,6 +947,8 @@ components:
947947 properties :
948948 discount :
949949 $ref : ' #/components/schemas/Discount'
950+ maximum_allowed_discount_amount :
951+ $ref : ' #/components/schemas/MaximumAllowedDiscountAmount'
950952 description : |-
951953 **Cart Value Action**
952954 Applies discount on the entire cart.
@@ -1016,6 +1018,8 @@ components:
10161018 properties :
10171019 discount :
10181020 $ref : ' #/components/schemas/Discount'
1021+ maximum_allowed_discount_amount :
1022+ $ref : ' #/components/schemas/MaximumAllowedDiscountAmount'
10191023 as_total :
10201024 type : boolean
10211025 description : |-
@@ -1090,13 +1094,17 @@ components:
10901094 type : string
10911095 description : The amount of discount (percentage off) to apply.
10921096 description : ' **Percentage Discount**'
1097+ required :
1098+ - percentage_amount
10931099 FixedDiscount :
10941100 title : Fixed Discount
10951101 type : object
10961102 properties :
10971103 fixed_amount :
10981104 $ref : ' #/components/schemas/Money'
10991105 description : ' **Fixed Discount**'
1106+ required :
1107+ - fixed_amount
11001108 Money :
11011109 title : Money
11021110 pattern : ' [0-9]+(\.[0-9]+)?'
@@ -1105,6 +1113,17 @@ components:
11051113 **Money**
11061114 Represents a monetary value in the store’s default currency.
11071115 example : ' 12.95'
1116+ MaximumAllowedDiscountAmount :
1117+ type : string
1118+ nullable : true
1119+ pattern : ' ^(0|([1-9][0-9]*))(\.[0-9]+)?$'
1120+ description : |
1121+ The maximum monetary value that can be applied as a discount. It can take value from 1 to 10000000.
1122+ The application of this maximum depends on the discount type:
1123+ - Discount on shipping: the max limit is distributed to the first number of shipping destinations until it is reached
1124+ - Discount on products: the max limit is distributed to the first number of eligible products until it is reached
1125+ - Discount on order subtotal: the max limit is checked against the order discount value
1126+ example : ' 10'
11081127 OptionalCursorCollectionMeta :
11091128 title : Collection Meta
11101129 type : object
@@ -1901,8 +1920,8 @@ components:
19011920 data :
19021921 - id : 1
19031922 redemption_type : AUTOMATIC
1904- name : Buy Product X Get Free Shipping
1905- display_name : WOW!!! FREE SHIPPING for Product X
1923+ name : Buy Product worth X Get Y% off upto Z
1924+ display_name : Shop for X and get Y% off upto Z
19061925 created_from : api
19071926 channels :
19081927 - id : 1
@@ -1923,7 +1942,8 @@ components:
19231942 - action :
19241943 cart_value :
19251944 discount :
1926- fixed_amount : ' 12.95'
1945+ percentage_amount : ' 10'
1946+ maximum_allowed_discount_amount : ' 20'
19271947 apply_once : true
19281948 stop : true
19291949 condition :
0 commit comments