34
34
get :
35
35
tags :
36
36
- Promotions (Bulk)
37
- summary : Get All Promotions
37
+ summary : Get All Promotions
38
38
description : |-
39
39
Returns a list of *promotions*.
40
40
@@ -120,7 +120,7 @@ paths:
120
120
get :
121
121
tags :
122
122
- Promotions (Single)
123
- summary : Get Promotion
123
+ summary : Get Promotion
124
124
description : |-
125
125
Returns a single *promotion*.
126
126
@@ -170,7 +170,7 @@ paths:
170
170
delete :
171
171
tags :
172
172
- Promotions (Single)
173
- summary : Delete Promotion
173
+ summary : Delete Promotion
174
174
description : |-
175
175
Deletes a promotion.
176
176
@@ -189,7 +189,7 @@ paths:
189
189
get :
190
190
tags :
191
191
- Coupon Codes (Bulk)
192
- summary : Get Coupon Codes
192
+ summary : Get Coupon Codes
193
193
description : |-
194
194
Get codes for a particular promotion.
195
195
@@ -204,7 +204,7 @@ paths:
204
204
post :
205
205
tags :
206
206
- Coupon Codes (Single)
207
- summary : Create A Coupon Code
207
+ summary : Create A Coupon Code
208
208
description : |-
209
209
Create a new code for the promotion.
210
210
@@ -242,7 +242,7 @@ paths:
242
242
delete :
243
243
tags :
244
244
- Coupon Codes (Bulk)
245
- summary : Delete Multiple Coupon Codes
245
+ summary : Delete Multiple Coupon Codes
246
246
description : |-
247
247
Deletes multiple coupon codes relating to the given promotion. Currently, batches are limited to 50 coupon codes.
248
248
@@ -819,6 +819,33 @@ components:
819
819
minimum : 1
820
820
required :
821
821
- zone_ids
822
+ ShippingDiscountAction :
823
+ title : Shipping Discount Action
824
+ type : object
825
+ description : |-
826
+ **Shipping Discount Action**
827
+ Discounts shipping, optionally restricted to specific shipping methods.
828
+ properties :
829
+ shipping_discount :
830
+ type : object
831
+ properties :
832
+ discount :
833
+ $ref : ' #/components/schemas/Discount'
834
+ method_ids :
835
+ description : ' '
836
+ oneOf :
837
+ - type : string
838
+ enum :
839
+ - ' *'
840
+ description : All configured shipping methods.
841
+ - type : array
842
+ uniqueItems : true
843
+ description : List of shipping method IDs to which the shipping discount can apply.
844
+ items :
845
+ type : integer
846
+ minimum : 1
847
+ required :
848
+ - method_ids
822
849
Discount :
823
850
title : Discount
824
851
description : ' **Discount**'
@@ -928,9 +955,9 @@ components:
928
955
type : array
929
956
description : Specifies where the notification message will be displayed.
930
957
example :
931
- - HOME_PAGE
932
- - PRODUCT_PAGE
933
- - CART_PAGE
958
+ - HOME_PAGE
959
+ - PRODUCT_PAGE
960
+ - CART_PAGE
934
961
- CHECKOUT_PAGE
935
962
items :
936
963
type : string
@@ -1338,7 +1365,7 @@ components:
1338
1365
success : 0
1339
1366
failed : 0
1340
1367
422 - Error Deleting :
1341
- example :
1368
+ example :
1342
1369
errors :
1343
1370
- status : 422
1344
1371
title : Errors occurred in bulk delete action.
0 commit comments