Newer Version Available

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

Clone Promotion (POST)

Clone an existing promotion along with its associated records
Resource
1/promotions/clone
Available version
61.0
HTTP methods
POST
JSON example
1{
2  "sourcePromotionId": "0c8xx00000000WHAAY",
3  "name": "ups clone 4",
4  "startDateTime": "2024-01-08T00:00:00.000Z",
5  "endDateTime": "2024-01-09T00:00:00.000Z",
6  "promotionCode": "sdfgy543wsd",
7  "doesReuseEngagementAttributes":"true",
8  "additionalFieldValues": {
9    "additionalFieldValuesMap": {
10      "Description": "test ups clone"
11    }
12  },
13  "relatedRecords": {
14    "relatedRecordsList": [
15      {
16        "relatedObjectApiName": "PromotionChannel",
17        "relatedObjectPromotionFieldName": "PromotionId"
18      },
19      {
20       "relatedObjectApiName": "PromotionLoyaltyPtnrProdt",
21        "relatedObjectPromotionFieldName": "PromotionId"
22      },
23        {
24       "relatedObjectApiName": "PromotionMarketSegment",
25        "relatedObjectPromotionFieldName": "PromotionId"
26      },
27      {
28        "relatedObjectApiName": "PromotionProduct",
29        "relatedObjectPromotionFieldName": "PromotionId"
30      },
31      {
32        "relatedObjectApiName": "PromotionProductCategory",
33        "relatedObjectPromotionFieldName": "PromotionId"
34      },
35      {
36        "relatedObjectApiName": "PromotionLimit",
37        "relatedObjectPromotionFieldName": "PromotionId"
38      }
39    ]
40  }
41}
Properties
Name Type Description Required or Optional Available Version
additional​FieldValues Map<String, String> Details of the promotion's additional fields. Small, 61.0 61.0
doesReuse​EngagementAttributes Boolean Indicates whether the new promotion uses the engagement attributes created for the source promotion to track customers' promotion usage (true) or (not). Small, 61.0 61.0
endDateTime String End date and time of the new promotion. Small, 61.0 61.0
name String Name of the new promotion. Small, 61.0 61.0
promotionCode String Code of the new promotion. Small, 61.0 61.0
relatedRecords Related Promotion Records Input [] Related record for the source promotion that have to be created for the new promotion. Small, 61.0 61.0
source​PromotionId String ID of the promotion that's cloned. Small, 61.0 61.0
startDateTime String Start date and time of the new promotion. Small, 61.0 61.0
Response body for POST
Clone Promotion