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 field only has effect when `can_be_used_with_other_promotions` is `false`:
425
+
- When the property is set to `true`, the coupon will override the applied automatic promotions if it provides a greater discount.
426
+
- When the property is set to `fasle`, the coupon will not be applied if automatic promotions are already applied.
427
+
Trying to set the value of this field when `can_be_used_with_other_promotions` is `true` will yield a 422 error response.
428
+
redemption_type:
429
+
type: string
430
+
description: The type of the promotion. Promotions applied automatically have a value of `AUTOMATIC` whereas promotions requiring a coupon have a value of `COUPON`.
431
+
enum:
432
+
- COUPON
433
+
required:
434
+
- redemption_type
435
+
- name
436
+
- rules
437
+
SavedCouponPromotion:
438
+
title: Saved Coupon Promotion
390
439
description: '**Coupon Promotion** A shopper must manually apply a *coupon promotion* to their cart.'
391
440
allOf:
392
441
- $ref: '#/components/schemas/PromotionBase'
393
442
- type: object
394
443
properties:
444
+
id:
445
+
type: integer
446
+
description: An auto-generated unique identifier for the discount rule.
This field only has effect when the `redemption_type` is `COUPON` and `can_be_used_with_other_promotions` is `false`:
401
-
- When the property is set to "true", the coupon will override the applied automatic promotions if it provides a greater discount.
402
-
- When the property is set to "false", the coupon will not be applied if automatic promotions are already applied.
459
+
- When the property is set to `true`, the coupon will override the applied automatic promotions if it provides a greater discount.
460
+
- When the property is set to `fasle`, the coupon will not be applied if automatic promotions are already applied.
403
461
404
-
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.
405
-
PromotionAutomatic:
406
-
title: Automatic Promotion
462
+
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.
463
+
redemption_type:
464
+
type: string
465
+
description: The type of the promotion. Promotions applied automatically have a value of `AUTOMATIC` whereas promotions requiring a coupon have a value of `COUPON`.
description: 'A Partial **Coupon Promotion** that contains properties to patch.'
494
+
allOf:
495
+
- $ref: '#/components/schemas/PromotionBase'
496
+
DraftAutomaticPromotion:
497
+
title: Draft Automatic Promotion
498
+
description: 'A draft **Coupon Promotion** to be created. The store applies *automatic promotions* to a shopper’s cart once the promotion criteria are satisfied. The shopper cannot manually apply an *automatic promotion*.'
499
+
allOf:
500
+
- $ref: '#/components/schemas/PromotionBase'
501
+
- type: object
502
+
properties:
503
+
redemption_type:
504
+
type: string
505
+
description: The type of the promotion. Promotions applied automatically have a value of `AUTOMATIC` whereas promotions requiring a coupon have a value of `COUPON`.
506
+
enum:
507
+
- AUTOMATIC
508
+
required:
509
+
- redemption_type
510
+
- name
511
+
- rules
512
+
SavedAutomaticPromotion:
513
+
title: Saved Automatic Promotion
407
514
description: The store applies *automatic promotions* to a shopper’s cart once the promotion criteria are satisfied. The shopper cannot manually apply an *automatic promotion*.
408
515
allOf:
409
516
- $ref: '#/components/schemas/PromotionBase'
517
+
- type: object
518
+
properties:
519
+
redemption_type:
520
+
type: string
521
+
description: The type of the promotion. Promotions applied automatically have a value of `AUTOMATIC` whereas promotions requiring a coupon have a value of `COUPON`.
522
+
enum:
523
+
- AUTOMATIC
524
+
id:
525
+
type: integer
526
+
description: An auto-generated unique identifier for the discount rule.
527
+
example: 1
528
+
readOnly: true
529
+
created_from:
530
+
$ref: '#/components/schemas/CreatedFrom'
531
+
required:
532
+
- id
533
+
- name
534
+
- channels
535
+
- created_from
536
+
- customer
537
+
- rules
538
+
- notifications
539
+
- stop
540
+
- currency_code
541
+
- redemption_type
542
+
- current_uses
543
+
- start_date
544
+
- status
545
+
- can_be_used_with_other_promotions
546
+
410
547
Customer:
411
548
type: object
412
549
description: |-
@@ -882,13 +1019,15 @@ components:
882
1019
When a 'before' or 'after' cursor is provided, only the 'cursor_pagination' property will be present.
883
1020
When a 'page' parameter is provided, only the offset based 'pagination' property will be present.
884
1021
CollectionMeta:
1022
+
required: [pagination]
885
1023
title: Collection Meta
886
1024
type: object
887
1025
properties:
888
1026
pagination:
889
1027
$ref: '#/components/schemas/Pagination'
890
1028
description: Contains data about the response including pagination and collection totals.
0 commit comments