The claim flow
- The player’s cumulative Loyalty XP crosses a milestone’s threshold.
- The reward becomes claimable in the loyalty hub.
- The player clicks Claim.
- Stash delivers the reward to your backend, which grants it.
unlockedMilestones. The grant signal remains the claim (step 4), never the unlock.
Milestone reward contents
A milestone reward is a fixed, one-time grant of one or more reward types:- In-game currency: the standard case, a fixed amount of a currency your backend grants (for example, 500 coins).
- Loyalty XP: a milestone can grant additional Loyalty XP.
- Catalog products (SKU rewards): a milestone can deliver an arbitrary catalog product or bundle instead of currency. See Milestone SKU rewards.
itemId (the reward type or catalog SKU) and a quantity. The list comes from your Studio configuration and is authoritative; treat it as server-side truth, never from the client.
Which tier a milestone belongs to
Each milestone lives inside a tier. When a milestone is claimed, theLOYALTY_MILESTONE_CLAIMED webhook reports the owning tier as milestoneTierId, alongside the shared loyalty payload. See Loyalty webhooks.
Reward delivery modes
Stash delivers a claimed reward to your backend through one of two mechanisms, configured per shop with your Stash engineering contact. It is a backend setting, not a Studio toggle.
With async webhook delivery, Stash sends
LOYALTY_MILESTONE_CLAIMED. With synchronous API delivery, Stash calls your game backend directly and the webhook is not sent.
Make your grant handler idempotent. De-duplicate on
userId + milestoneId so a retry or duplicate delivery never grants a milestone reward twice.Fields
XP thresholds and reward amounts lock when the program is published; display fields stay editable. See Configuration.