loyalteez_update_achievement_progress
Update a user's progress toward achievements by setting or incrementing values; automatically unlock at thresholds and return newly unlocked achievements.
Instructions
Update user progress toward an achievement. When progress reaches the threshold, the achievement automatically unlocks. Returns newly unlocked achievements.
See also: loyalteez://docs/shared-services/achievement-service
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| brandId | No | Your brand wallet address. If not provided, uses LOYALTEEZ_BRAND_ID environment variable. | |
| newValue | Yes | New progress value | |
| platform | Yes | Platform: "discord" | "telegram" | "web" | etc. | |
| increment | No | If true, adds newValue to current progress. If false, sets progress to newValue. | |
| userIdentifier | Yes | User identifier (platform_userId@loyalteez.app or email) | |
| achievementType | Yes | Type of achievement to update |