Update Member Progress for Cumulative Promotion
Update the progress made by a loyalty program member towards attaining a Cumulative type promotion. The action creates a Loyalty Program Member Promotion record if the promotion isn’t associated with the member.
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.
URI: /services/data/vXX.X/actions/standard/updateProgressForCumulativePromotionUsage
Formats: JSON, XML
HTTP Methods: POST
Authentication: Authorization: Bearer token
| Input | Type | Description |
|---|---|---|
loyaltyProgramMemberId | ID | Required. ID of the loyalty program member who progress towards attaining a cumulative promotion must be updated. |
promotionId | ID | Required. ID of the Cumulative type promotion for which member’s progress must be updated. |
usageIncrementForCumulativePromotion | integer | Required. The value or quantity that must be added to member’s usage towards attaining the promotion.For example, if the target of a promotion is 10 units and the member has previously purchased 1 unit. Now the member has purchased 4 units. In this scenario, the input must be 4 and not 5 (1+4). |
| Output | Type | Description |
|---|---|---|
cumulativeUsageTarget | integer | The target value or quantity which members must achieve to attain the promotion. |
updatedCumulativeUsageCompleted | integer | The updated value or quantity by which the member has progressed towards attaining the promotion.For example, if the target of a promotion is 10 units and the member has previously purchased 1 unit. Now the member has purchased 4 units. In this scenario, the output is 5. |
Sample Request
Sample Response