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
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
@@ -585,11 +607,10 @@ components:
585
607
example: false
586
608
default: false
587
609
description: |-
588
-
This field only has effect when the `redemption_type` is `COUPON` and `can_be_used_with_other_promotions` is `false`:
589
-
- When the property is set to `true`, the coupon will override the applied automatic promotions if it provides a greater discount.
590
-
- When the property is set to `fasle`, the coupon will not be applied if automatic promotions are already applied.
591
-
592
-
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.
610
+
- When this property is set to `true`, the coupon will always override all applied promotions, including both automatic and coupon promotions.
611
+
- When this property is set to `false`, the coupon will not be applied if any promotions are already applied.
612
+
613
+
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.
593
614
redemption_type:
594
615
type: string
595
616
description: The type of the promotion. Promotions applied automatically have a value of `AUTOMATIC` whereas promotions requiring a coupon have a value of `COUPON`.
0 commit comments