> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stash.gg/llms.txt
> Use this file to discover all available pages before exploring further.

# Configure in Stash Studio

> Step-by-step walkthrough for configuring a loyalty program in Stash Studio: reward types, program settings, tiers, milestones, validation rules, and publishing.

Configuration is self-serve. Open your shop in [Stash Studio](https://studio.stash.gg/) and go to the **Loyalty** section, which has two surfaces: **Reward Types** and **Configuration**. Use [studio-test](https://studio-test.stash.gg/) for test shops.

Follow the order below. Reward types must exist before tiers and milestones can reference them.

```mermaid theme={null}
graph LR
S1[1. Reward Types] --> S2[2. Program Settings] --> S3[3. Tiers] --> S4[4. Milestones] --> S5[5. Publish]
```

**1. Define reward types**

On the **Reward Types** surface, create each currency or item your program grants: Loyalty XP, your in-game currencies, and any catalog products used as rewards. Give each a name and a 162 x 162 px icon.

Reward types are reused across the whole program, so define them once here. See [Reward types](https://docs.stash.gg/guides/stash-webshop/how-tos/loyalty/reward-types.md) for what each type means.

![Stash Studio Loyalty Reward Types surface with the Loyalty XP reward type expanded to show its icon and name](https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/img/studio/loyalty/01-reward-types.png?fit=max\&auto=format\&n=I_GbdmJR4L85eJZA\&q=85\&s=7bb10d3606f5c5ed7512de6cb9d45657)

**2. Configure program settings**

On the **Configuration** surface, set the program's display name (for example "Pit Pass" or "VIP Club") and turn on the **Enabled** toggle. The program must be enabled to publish.

![Loyalty Configuration editor in Stash Studio showing program settings with the display name and Enabled toggle above the tier table](https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/img/studio/loyalty/02-program-settings.png?fit=max\&auto=format\&n=I_GbdmJR4L85eJZA\&q=85\&s=f1018f89d4532d8af3d72cebbe33b455)

**3. Create tiers**

Add tiers in ascending XP order. Each tier is a short modal: general info (name, tier ID, XP threshold), assets (icon, optional background and colour), and earn rates (reward type and amount per USD for each).

The first tier must start at 0 XP. Configure earn rates for every tier; there are no inherited defaults. See [Tiers](https://docs.stash.gg/guides/stash-webshop/how-tos/loyalty/tiers.md) for field details.

![Tier modal in Stash Studio with General Info, Assets, and Reward steps, showing tier ID, tier name, and XP threshold fields](https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/img/studio/loyalty/03-tier-modal.png?fit=max\&auto=format\&n=I_GbdmJR4L85eJZA\&q=85\&s=34174b7a093361260cfb56c97fbd3ce9)

**4. Add milestones**

Inside each tier, add one or more milestones: general info (name, XP threshold within the tier's range), assets (icon and background, both required), and rewards (reward name, reward types, and fixed amounts).

Each tier must contain at least one milestone. See [Milestones](https://docs.stash.gg/guides/stash-webshop/how-tos/loyalty/milestones.md) for field details.

![Milestone Reward step in Stash Studio showing the milestone reward name, selected reward type, and reward amount](https://mintcdn.com/stash-gg/I_GbdmJR4L85eJZA/img/studio/loyalty/04-milestone-config.png?fit=max\&auto=format\&n=I_GbdmJR4L85eJZA\&q=85\&s=a582fde9c95941db1fce70eb6b432d40)

**5. Publish the program**

The program starts in **Draft**: no XP is awarded and no milestone is claimable until you publish. Click **Publish** in the Loyalty overview to validate and take the program live.

## Validation rules

All of these must pass before the program can publish:

* The program is enabled and has a display name.
* At least one reward type is configured.
* At least one tier exists, and the first tier starts at 0 XP.
* Tier XP thresholds are unique.
* Every tier has a name, a threshold, and at least one earn rate greater than 0.
* Every tier contains at least one milestone.
* Every milestone has a name, an XP threshold within its tier's range, an icon, a background image, a reward name, and at least one reward amount greater than 0.

## Draft and published

A program moves **Draft → Published**, and back via unpublish.

```mermaid theme={null}
graph LR
D[Draft<br/>fully editable] -->|Publish, validates| P[Published<br/>structure locked, display editable]
P -->|Unpublish| D
```

Once published, the **structure locks**: XP thresholds, reward assignments, and reward amounts cannot change, and tiers, milestones, and reward types cannot be created or deleted.

**Display fields stay editable**: names, icons, backgrounds, and colours can be updated live, so creative can be refreshed within a season without touching the economy.

> [!WARNING]
>
> To make structural changes after publishing, unpublish, edit, and re-publish.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.