Skip to main content
A FreeItem is claimable at no cost. When a player claims one, Stash records the redemption and emits a FREE_ITEM_REDEEMED webhook. Two fields govern how claims are tracked: status and claimId.

Claim status

Send status as AVAILABLE, CLAIMED or LOCKED. Stash combines it with its own record of the player’s claims in the web shop, and that record decides what the player sees until the item’s refreshAt:
  • Recorded claim. Stash shows the item as CLAIMED with maxClaimable set to 0, so a reload cannot offer a consumed gift again. You don’t need to change status or maxClaimable after a claim made in the web shop.
  • Claim not yet complete. A claim can stop after Stash queued its FREE_ITEM_REDEEMED webhook but before Stash recorded it. Until it completes, Stash shows an AVAILABLE or CLAIMED item as AVAILABLE with maxClaimable set to 1, so the player can claim again. A LOCKED item stays LOCKED. The new claim completes the same redemption. You may receive its webhook again, with the same redemptionId. De-duplicate on redemptionId so the player gets the reward once.
At the item’s refreshAt, Stash’s record for that period ends, and from then on your status alone decides the next period. For items in a streak tracked by Stash, Stash sets AVAILABLE, CLAIMED and LOCKED itself from the player’s streak, and ignores the status you send, including when you omit it.

Claim identity

claimId is optional: a stable claim identity, separate from itemId. Free items that share a claimId are the same claim for a claim period: claiming any one of them consumes the claim for all of them. When absent, itemId is the claim identity, so integrations that do not send claimId change nothing. Use claimId when the item you serve varies per player, for example a daily gift whose itemId differs by loyalty tier. Keep the claimId stable across the variants, and the claim still de-duplicates as one gift per period, whichever variant a player sees.
  • One item per claimId. Return at most one item per claimId per response; additional items sharing one may be discarded. A locked preview of a later reward must carry a distinct claimId, or none at all.
  • Repeat claims. Once a claim is recorded, a repeat claim inside the same window returns an idempotent success: no new FREE_ITEM_REDEEMED webhook, and no second Loyalty XP credit for gifts that grant XP. For a claim that is not yet complete, see Claim status.
  • Webhook payload. On FREE_ITEM_REDEEMED, itemId is the item that was granted. claimId is the claim it consumed, and appears only when it differs from itemId.
A free item’s refreshAt also ends Stash’s cached copy of your catalog at that time, so the next request for the player’s catalog after the reset reads your new response. If a free item first appears at a set time that no item, section or trigger in the current response carries, send that time in catalog.refreshAt. See Caching.

Streaks tracked by Stash

A streak is a run of free items that a player claims one per period, such as a daily gift calendar. For a shop where Stash turns on a streak, Stash tracks each player’s progress and decides which item is claimable. A shop has 1 such streak. You supply the rewards.
Example 7-step daily streak: steps 1 to 3 claimed, step 4 available with a countdown to the next reset, steps 5 to 7 locked.
In the web shop, the player sees their current sequence only:
Example web shop with a daily streak: the player's current sequence (week 2), days 1 to 3 claimed, day 4 ready to claim, days 5 to 7 locked, and a countdown to the next gift.

Send the streak in GetCatalog

1

Put every step in one section

Put all the streak’s items in one catalog section as free items: one item per step (or one per tier, see the last step), for every sequence, with the rewards for this player.Give each item its own itemId, and do not share a claimId between items. Stash keys the streak’s claims itself, so the per-variant claimId pattern in Claim identity does not apply.
2

Number the steps with streakOrder

Start at 1 and continue across sequences: with 7-step sequences, step 1 of the second sequence is 8.
  • Set streakOrder on every free item in the section, or on none.
  • Set it whenever any item in the section sets targetTierId.
  • When no item sets it, Stash numbers the free items that apply to the player (those without targetTierId and those for the player’s current tier) in the order they appear in the section agreed for your shop or, if none is agreed, in the first section of your catalog that contains only free items.
3

Keep the layout whole

The numbers run from 1 with no gaps, and they cover a whole number of sequences. The sequence length is set for your shop (7 unless agreed otherwise). Set streakOrder in 1 section only.
4

Vary rewards by loyalty tier (optional)

For a step whose reward depends on the player’s tier, send one item per tier with the same streakOrder and that tier’s targetTierId. Optionally, add one item without targetTierId for players with no matching tier.
  • Each number has at most one item per tier and one without targetTierId.
  • Stash shows the player only the item for their current tier, or else the one without targetTierId. The claim’s FREE_ITEM_REDEEMED webhook carries the itemId of the item the player claimed.
  • If you serve only the player’s own tier (Stash sends it in the currentTierId query parameter of GetCatalog), send that tier’s items.

Step status

Stash shows the player’s current sequence only, and sets each step’s status: Stash also sets maxClaimable: 1 on the step that can be claimed, 0 on every other step. You do not need to send status or maxClaimable on these items; if you do, Stash ignores them, whatever the values. Players who are not signed in do not see the streak’s items.

Hidden and highlighted steps (optional)

Two optional booleans on a free item: one keeps a streak step’s reward hidden until its day, the other is a display hint. They are independent: send either, both or neither. See GetCatalog for the fields. On a hidden step:
  • Send the real reward. Put the step’s reward in contents and bonusItems as on any other step. The claim and its FREE_ITEM_REDEEMED webhook work as for any other step.
  • Keep itemId, guid and templateKey neutral. Stash always sends all three, so none may name the reward.
  • Keep its identities unique. No other item in the catalog, of any kind (a free item, a purchasable, an offer chain link or a purchase pack item), may use a hidden step’s itemId or guid, or claim as it (the same claimId, or the free offer it claims as). If one does, Stash hides the streak and reports its items in the CATALOG_ITEMS_DROPPED webhook with field "STREAK_HIDDEN_IDENTITY_SHARED".
  • Keep it out of offer details. Before the step’s day, your GetOfferDetails endpoint must not return its reward: Stash passes an offer details request on to you for any item, hidden or not.
  • It stays hidden when progress is unknown. If Stash cannot read the player’s progress, every step is LOCKED, so a hidden step stays hidden.
  • Claimed steps hide again after a reset. After a missed period sends the player back to step 1, the steps they claimed earlier are LOCKED again, and a hidden one is hidden again.
Stash applies rewardHiddenWhileLocked only to the items of a streak it tracks for your shop. If that streak’s layout is invalid, a hidden step stays hidden and cannot be claimed until the layout is fixed. On any other free item, the item is shown as you sent it.

Periods and resets

  • Period. A period is a day or a week, starting at a time of day in a time zone agreed for your shop (00:00 UTC unless agreed otherwise). Weekly periods start on Monday. In a time zone with daylight saving, the reset follows local time.
  • refreshAt. Send refreshAt on each item, set to the next reset. Stash uses it as the end of the current period and shows a countdown to it. When it is missing, already past, or more than one period ahead, Stash uses the reset agreed for your shop instead.
  • Your own checks. Send the same time in refreshAt, and use it for any once-per-period check on your side.

Claims and missed periods

The streak advances only on a claim. A player can claim one step per period, and only the step that is due. Claiming the last step of a sequence moves the player to the next sequence, and claiming the last step of the last sequence wraps the streak to step 1. A missed period sends the player back to step 1 of the sequence they are in, the one holding the step that was due. A period in which the streak is turned off or its items are missing counts as missed.

Granting the reward

Grant the reward when you receive the claim’s FREE_ITEM_REDEEMED webhook.
Stash records a claim only once its webhook is queued, so a streak needs an enabled webhook endpoint for your shop. Without one, every claim fails and nothing is recorded.
If a claim fails after its webhook was queued, the player’s retry in the same period is the same redemption: its webhook carries the same redemptionId as long as the period’s refreshAt has not changed, so de-duplicate on it.

Edge cases

When the due step has no item for the player’s tier and none without targetTierId, there is nothing to claim.
  • By default, the period counts as missed. As after any miss, the player goes back to step 1 of the sequence that step is in. So a player whose tier has no item for a step claims the steps before it, cannot claim that step, and starts the sequence again, every time, never getting past it.
  • To avoid this, send an item for every step to every tier you target, or an item without targetTierId for that step.
  • Step 1 without a reward. If step 1 of the sequence also has no item for the player, they stay on it until you send one.
  • Skip option. If agreed for your shop, the next step that has an item for the player becomes due in the same period instead.
If Stash cannot read a player’s progress, or, for a streak with tier rewards, their loyalty tier, every step shows as LOCKED and nothing is claimable until it can. With the skip option, the same applies when no step has an item for the player.
  • By default a new loyalty season does not change a player’s place in the streak.
  • If agreed for your shop, and your loyalty seasons run in Stash, a new season restarts the streak: the player’s first claim in a season other than the one of their last claim is step 1, and a claim already made in the current period stays claimed.
  • A time with no live season does not count as a new season.
  • Items for tiers that are not in the live season are not shown.
If the rewards you send for a player change, for example with their segment, the player stays on the same step and sees the new reward for it. If you send fewer steps than a player has reached, their place wraps back to the matching step from the start.