Opt Out from a Promotion

Opt out a loyalty program member from an available promotion.

Example URL

1https://yourInstance.salesforce.com/services/data/v67.0/connect/loyalty/programs/DemoProgram/program-processes/Leave Promotion

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

Sample JSON Requests

Some of the API request fields contain field names that are interchangeable. For information on the list of interchangeable field names, see Loyalty Management Connect API Interchangeable Request Fields.

Note

Here's an example with a membership number and promotion name:

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

Here's an example with a member ID and promotion ID:

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

Sample JSON Response

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