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
Copy file name to clipboardExpand all lines: reference/promotions.v3.yml
+24-3Lines changed: 24 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -510,14 +510,25 @@ components:
510
510
properties:
511
511
codes:
512
512
$ref: '#/components/schemas/CouponCode'
513
+
coupon_overrides_other_promotions:
514
+
type: boolean
515
+
example: false
516
+
default: false
517
+
description: |-
518
+
This field only has effect when `can_be_used_with_other_promotions` is `false`:
519
+
- When the property is set to `true`, the coupon will always override all applied promotions, including both automatic and coupon promotions.
520
+
- When the property is set to `false`, the coupon will not be applied if any promotions are already applied.
521
+
N.B.: This field only has effect when `can_be_used_with_other_promotions` is `false`. Trying to set the value of this field when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
This property has been deprecated and `coupon_overrides_other_promotions` should be used instead.
518
529
This field only has effect when `can_be_used_with_other_promotions` is `false`:
519
530
- When the property is set to `true`, the coupon will override the applied automatic promotions if it provides a greater discount.
520
-
- When the property is set to `fasle`, the coupon will not be applied if automatic promotions are already applied.
531
+
- When the property is set to `false`, the coupon will not be applied if automatic promotions are already applied.
521
532
Trying to set the value of this field to `true` when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
522
533
coupon_type:
523
534
type: string
@@ -538,14 +549,25 @@ components:
538
549
properties:
539
550
codes:
540
551
$ref: '#/components/schemas/CouponCode'
552
+
coupon_overrides_other_promotions:
553
+
type: boolean
554
+
example: false
555
+
default: false
556
+
description: |-
557
+
- When this property is set to `true`, the coupon will always override all applied promotions, including both automatic and coupon promotions.
558
+
- When this property is set to `false`, the coupon will not be applied if any promotions are already applied.
559
+
560
+
N.B.: This field only has effect when `can_be_used_with_other_promotions` is `false`. Trying to set the value of this field when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
This property has been deprecated and `coupon_overrides_other_promotions` should be used instead.
546
568
This field only has effect when `can_be_used_with_other_promotions` is `false`:
547
569
- When the property is set to `true`, the coupon will override the applied automatic promotions if it provides a greater discount.
548
-
- When the property is set to `fasle`, the coupon will not be applied if automatic promotions are already applied.
570
+
- When the property is set to `false`, the coupon will not be applied if automatic promotions are already applied.
549
571
Trying to set the value of this field when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
550
572
redemption_type:
551
573
type: string
@@ -588,7 +610,6 @@ components:
588
610
This field only has effect when the `redemption_type` is `COUPON` and `can_be_used_with_other_promotions` is `false`:
589
611
- When the property is set to `true`, the coupon will override the applied automatic promotions if it provides a greater discount.
590
612
- When the property is set to `fasle`, the coupon will not be applied if automatic promotions are already applied.
591
-
592
613
Trying to set the value of this field to `true` when the `redemption_type` is not `COUPON`, or when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
0 commit comments