Newer Version Available

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

Get Member Promotions

View all eligible promotions of a loyalty member.

Example URL

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

The request and response parameters vary depending on the input and output parameters configured for the GetMemberPromotions 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

This sample has the member Id parameter.
1{
2   "processParameters":[
3      {
4         "MemberId":"0lMRM0000004F102AE"
5      }
6   ]
7}

Sample2

This sample has the membership number parameter.
1{
2   "processParameters":[
3      {
4         "MembershipNumber":"doc_member1"
5      }
6   ]
7}

Sample JSON Response

1{
2   "message":null,
3   "outputParameters":{
4      "outputParameters":{
5         "results":[
6            {
7               "promotionName":"doc_promo_1",
8               "promotionId":"0c8RM0000004DnXYAU",
9               "startDate":"2022-09-01",
10               "promotionEnrollmentRqr":false,
11               "memberEligibilityCategory":"Eligible"
12            }
13         ]
14      }
15   },
16   "simulationDetails":{
17      
18   },
19   "status":true
20}