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.
Update Member Progress for Cumulative Promotion
For more information about this action, see Update the Member's Progress Towards Attaining a Cumulative Promotion in Salesforce Help.
This action is available in API version 53.0 and later for users in orgs where either B2C - Loyalty, B2C - Loyalty Plus, Loyalty Management - Growth, or Loyalty Management - Advanced license is enabled.
Supported REST HTTP Methods
- URI
- /services/data/vXX.X/actions/standard/updateProgressForCumulativePromotionUsage
- Formats
- JSON, XML
- HTTP Methods
- POST
- Authentication
- Authorization: Bearer token
Inputs
| Input | Details |
|---|---|
| loyaltyProgramMemberId |
|
| promotionId |
|
| usageIncrementForCumulativePromotion |
|
Outputs
| Output | Details |
|---|---|
| cumulativeUsageTarget |
|
| updatedCumulativeUsageCompleted |
|
Example
Sample Request
1{
2"inputs" : [
3 {
4"loyaltyProgramMemberId" : "0lMRxx0000006MfMAI",
5"promotionId": "0c8xx00000002MqIAI",
6"usageIncrementForCumulativePromotion": 4
7 }
8]
9}Sample Response
1[ {
2 "actionName" : "updateProgressForCumulativePromotionUsage",
3 "errors" : null,
4 "isSuccess" : true,
5 "outputValues" : {
6 "cumulativeUsageTarget" : 10,
7 "updatedCumulativeUsageCompleted" : 5
8 }
9} ]