Newer Version Available

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

Enroll for Promotions

Enroll a loyalty member to a promotion.

Example URL

1/connect/loyalty/programs/DemoProgram/program-processes/enrollInPromotion

The request and response parameters vary depending on the input and output parameters configured for the EnrollInPromotion process in a Salesforce org.

Sample JSON Request

The value of a default request parameter can be an ID, a name, or a number, as shown in the following samples.

Sample1

1{
2   "processParameters":[
3      {
4         "MemberId":"0lMxx00000000BJEAY",
5         "PromotionId":"0c8xx00000000BJEAY"
6      }
7   ]
8}

Sample2

1{
2   "processParameters":[
3      {
4         "MembershipNumber":"003",
5         "PromotionName":"Flat20"
6      }
7   ]
8}

Sample JSON Response

1{
2   "message":null,
3   "outputParameters":{
4      "outputParameters":{
5         "results":[
6            {
7               "MemberId":"1lpRM0000004CBxYAM"
8            }
9         ]
10      }
11   },
12   "simulationDetails":{
13      
14   },
15   "status":true
16}