Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 4.12 KB

StartAchievementProgressEffectProps.md

File metadata and controls

18 lines (11 loc) · 4.12 KB

StartAchievementProgressEffectProps

This effect indicates that the customer's progress in an achievement was started during the current session. The Rule Engine creates a progress tracker for the customer, identified by progressTrackerId. This effect only starts the customer's progress and does not increase the progress. When this effect is returned, the customer progress status is inprogress and the progress value is 0. You can retrieve the customer's current progress at any time, whether or not this effect was returned, in the following ways: - Include achievements in the responseContent property of your request, on any endpoint where this property is available, for example Update customer session. - Use the List customer's available achievements endpoint. - Use the List customer's achievement history endpoint. For recurring achievements, this effect is only returned for the first iteration and has no effect on the iterations that follow. For recurring user-action achievements specifically, this effect also begins the customer's progress period, specified by the startDate and endDate properties. This effect is triggered in the following cases: - A rule containing a Start customer progress effect is validated. - A rule containing an Update customer progress effect is validated for an achievement that the customer has not started yet. In this case, the Rule Engine returns the startAchievementProgress effect first, followed by increaseAchievementProgress, which carries the increased customer progress. Use progressTrackerId to connect the results produced by the two effects. Note: - This effect is not returned if the customer's progress in the achievement has already started, or if the achievement's end date has passed. In these cases, the Start customer progress effect fails, an error effect is returned, and the customer's progress remains unchanged. Any other effects in the same rule are also not applied. - If a rule with this effect fails, include ruleFailureReasons in the responseContent property of your request to see the reason for failure. The customer's progress is unchanged, so no update is required. The failure reason identifies the campaign, ruleset, and rule that failed, and details explains why. - There is no rollback effect for the startAchievementProgress effect.

Properties

Name Type Description Notes
achievementId Long The ID of the achievement.
achievementName String The name of the achievement.
progressTrackerId Long The ID of the customer's progress tracker for this achievement. For on-completion achievements, this effect generates a unique ID for each iteration. [optional]
target BigDecimal The target value to complete the achievement.
startDate OffsetDateTime Timestamp at which the customer's progress started.
endDate OffsetDateTime Timestamp at which this progress period ends. Only returned for achievements that have a fixed end date. On-completion achievements have no end date. [optional]