Newer Version Available

This content describes an older version of this product. View Latest

Composite Promotion Input

Input representation of the create promotion request.
Root XML tag
<createPromotion>
JSON example
1{
2   "active": false,
3   "areQualItemsExclFromDiscounts": false,
4   "currencyIsoCode": "USD",
5   "description": "This is fall promotion.Get 10% off on Product &#39;Alpine Energy Drink Chai Post 0.5L PET - 6 pack&#39;",
6   "discountOrder": "MostExpensive",
7   "discountRestriction": "None",
8   "displayName": {
9      "translations": {},
10      "value": "Fall Promotion"
11   },
12   "objective": "Upsell product in fall",
13   "isTiered": true,
14   "endDateTime": null,
15   "exclusivityType": "Class",
16   "maximumUsageCount": 1,
17   "name": "Fall Promotion",
18   "priorityNumber": null,
19   "qualifierCriteria": "All",
20   "segments": [
21      {
22         "id": "0ZESB0000006vja4AA",
23         "name": "Codecept B2B LWR Store",
24         "segmentType": "Webstore"
25      }
26   ],
27   "startDateTime": "2023-09-01T00:00:00Z",
28   "targetCriteria": "Any",
29   "targets": [
30      {
31         "adjustmentType": "PercentageDiscount",
32         "adjustmentValue": "10",
33         "currencyIsoCode": "USD",
34         "isMinItemCountRequired": false,
35         "restrictionQuantity": null,
36         "ruleCriteriaType": "ANY",
37         "targetReferences": [
38            {
39               "id": "01tSB0000002p01YAA",
40               "itemReferenceType": "Product",
41               "name": "Alpine Energy Drink Chai Post 0.5L PET - 6 pack",
42               "operatorType": "EQUALS_TO"
43            }
44         ]
45      }
46   ],
47   "qualifiers": [
48      {
49         "currencyIsoCode": "USD",
50         "qualifierReferences": [
51            {
52               "id": "01tSB0000002p01YAA",
53               "itemReferenceType": "Product",
54               "name": "Alpine Energy Drink Chai Post 0.5L PET - 6 pack",
55               "operatorType": "EQUALS_TO"
56            }
57         ],
58         "qualifierType": "Quantity",
59         "qualifierValue": 2
60      }
61   ],
62   "termsAndCondition": {
63      "translations": {},
64      "value": "This is fall promotion.Get 10% off on Product &#39;Alpine Energy Drink Chai Post 0.5L PET - 6 pack."
65   }
66}
Properties
Name Type Description Required or Optional Available Version
active Boolean Indicates whether the promotion is active (true) or not (false). Optional 62.0
areQualItemsExcl​FromDiscounts Boolean Indicates whether qualifying items are excluded from discounts for the promotion (true) or not (false). Optional 62.0
currencyIsoCode String Three-letter ISO 4217 currency code associated with the promotion. Optional 62.0
description String Localized display name of the promotion. Optional 62.0
discountOrder String Discount order for the promotion. Possible values are:
  • LeastExpensive
  • MostExpensive
Optional 62.0
discount​Restriction String Discount restriction for the promotion. Possible values are:
  • LeastExpensive
  • None
Optional 62.0
displayName Promotion Translation Input Promotion display name and translated values. Optional 62.0
endDateTime String The date time the promotion ends. Optional 62.0
exclusivityType String Type of exclusivity to be considered when applying the promotion. Possible values are:
  • Class—Class exclusion.
  • Global—Global exclusion.
  • No—No exclusion.
Optional 62.0
generationId String ID of the generated promotion. This field is used to display the feedback component and collect promotion feedback when Smart Promotion is enabled. Optional 62.0
maximumUsage​Count Integer Number of times a promotion can apply to a cart. Optional 62.0
name String Name of the promotion. Required 62.0
objective String Objective for promotion. Optional 62.0
priorityNumber Integer Priority number for the promotion. Optional 62.0
qualifierCriteria String Qualifier criteria for the promotion. Possible values are:
  • All—All the criteria are met.
  • Any—Any of the criteria can be met.
Optional 62.0
qualifiers Promotion Qualifier Input[] List of promotion qualifiers. Optional 62.0
segments Promotion Segment Input[] List of promotion segments associated with the web store or buyer group. Required 62.0
startDateTime String The date time the promotion starts. Optional 62.0
targetCriteria String Promotion criteria type. Possible values are:
  • All—All the criteria are met.
  • Any—Any of the criteria can be met.
Optional 62.0
targets Promotion Target Input[] List of promotion targets. Required 62.0
termsAnd​Condition Promotion Translation Input Promotion terms and conditions and translated values. Optional 62.0
tiered Boolean Indicates whether promotion is tiered (true) or not (false).

If it is a tiered promotion, each tier can have its own set of targets and qualifiers. For example, buy 1 "t-shirt" and get 10% off or buy 2 "t-shirts” and get 20% off.

Optional 62.0