Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Enroll for Promotions
Enroll a loyalty member to a promotion.
Example URL
1https://yourInstance.salesforce.com/services/data/v68.0/connect/loyalty/programs/DemoProgram/program-processes/Enroll PromotionThe request and response parameters vary depending on the input and output parameters configured for the EnrollInPromotion process type in a Salesforce org.
Sample JSON Requests
Here's an example with a member ID and promotion ID:
1{
2 "processParameters":[
3 {
4 "MemberId":"0lMxx00000000BJEAY",
5 "PromotionId":"0c8xx00000000BJEAY"
6 }
7 ]
8}Here's an example with a membership number and promotion name:
1{
2 "processParameters":[
3 {
4 "MembershipNumber":"M1234",
5 "PromotionName":"Flat20"
6 }
7 ]
8}Sample JSON Response
1{
2 "message":null,
3 "outputParameters":{
4 "outputParameters":{
5 "results":[
6 {
7 "MemberId":"0lMRM0000004GBn2AM",
8 "LoyaltyProgramMbrPromotionId":"1lpRM0000004CEmYAM"
9 }
10 ]
11 }
12 },
13 "simulationDetails":{
14
15 },
16 "status":true
17}