Appearance
Loyalty Program Guide
A points and tier system. Users earn points for activity you choose (bets placed, bets won, achievements earned), climb tiers on their points, and can receive cashback on losing bets at the rate of their tier.
Works standalone: no challenge or funded account required.
How It Works
- Operator sets the point rules, decay, cashback and tiers in the backoffice
- Each accepted bet (and each won settlement or earned achievement, if you add a rule for it) earns points
- Points unlock tiers: the user's tier is the highest one whose
minPointstheir current points reach - A tier can carry a
cashbackPercent: with cashback on, each losing bet accrues that share of its stake - Accrued cashback settles once per period and fires
loyalty.cashback_settled; you credit it - Optional monthly decay lowers points; a user below their tier moves down after a grace period
Deployment Modes
| Mode | Description |
|---|---|
| Challenges + Loyalty | Points earned on all accepted bets, whether or not the user is in a challenge |
| Loyalty only | Standalone tier system. Cashback as the main value |
Configuration
Program config (PUT /v1/admin/loyalty/config)
Send only the fields to change: the rest keep their stored value, or the default on first save.
| Field | Default | Description |
|---|---|---|
pointRules | [] | List of point rules, see below |
decayMode | none | none, monthly_reset (points back to 0) or monthly_percent |
decayPercent | Whole number 0 to 100: share of points removed each month in monthly_percent mode | |
cashbackEnabled | false | Turns tier cashback on |
cashbackSettleMode | weekly | daily, weekly or monthly, in the operator's timezone; see Cashback |
demotionEnabled | true | Whether a user who falls below their tier is moved down |
demotionGraceDays | 30 | Days a user may sit below their tier before the move, 0 or more; 0 means on the next run |
enabled | true | Turns the whole program on or off |
Point rules
Each rule names one activity:
| Field | Description |
|---|---|
activity | bet_placed, bet_won or achievement_earned |
pointsPerEurWagered | Points per whole EUR of stake. Used for bet_placed only: the stake is rounded down (a 5.90 EUR stake counts as 5) |
pointsFlat | Fixed points per event. Used for bet_won and achievement_earned, and for bet_placed when there is no pointsPerEurWagered |
maxPerDay | Most times the rule pays a user per day (the database day) |
json
{
"pointRules": [
{ "activity": "bet_placed", "pointsPerEurWagered": 1 },
{ "activity": "bet_won", "pointsFlat": 5, "maxPerDay": 20 },
{ "activity": "achievement_earned", "pointsFlat": 50 }
]
}Without a rule for an activity, it earns nothing. There is no tier multiplier: a rule pays the same in every tier.
Tiers
| Field | Required | Description |
|---|---|---|
name | Yes | Tier name ("Bronze", "Gold") |
level | Yes | Whole number rank; higher is better |
minPoints | Yes | Points needed to reach the tier |
cashbackPercent | No | Cashback on the stake of each losing bet (default 0) |
benefits | No | List of benefits shown to the user |
icon | No | Icon name for the widget (default star) |
color | No | Hex colour for the widget (default #FFD700) |
Example tiers:
Bronze: level 1, 0 pts
Silver: level 2, 1000 pts
Gold: level 3, 5000 pts, 3% cashback
Platinum: level 4, 20000 pts, 5% cashback, benefits ["Priority support"]Deleting a tier that users hold answers 409 tier_in_use.
Points Mechanics
- Only bets FAST accepted earn points
- Points are tenant scoped (not shared across operators)
- A user gets a loyalty record on the first points they earn
- Tier promotion is checked on every points award and every manual adjustment, and fires
loyalty.tier_upgraded - Tier demotion: a scheduled job checks every minute. A user whose points fall below their tier's
minPoints(decay, a void, a manual adjustment) keeps the tier fordemotionGraceDays; if they are still below once that has passed, they move to the tier their points qualify for andloyalty.tier_downgradedfires. Climbing back above the minimum stops the clock. With a grace of 0 the move happens on the next run - Reading a user's loyalty (
GET /v1/users/:userId/loyalty, the widget, the backoffice) never changes their tier: during the grace period it shows the tier they still hold - A voided bet takes back the points it earned, once, and the log shows the reversal (
bet_placed_voided,bet_won_voided)
Decay
Decay runs once a month, on the 1st between 07:00 and 07:30 UTC, and never more than once a month for your players, even if a run is retried. Each change is written to the user's points log as monthly_decay, with the month (for example 2026-11) as its reference.
Cashback
- Needs
cashbackEnabledand a tier withcashbackPercentabove 0 - Accrues
stake * cashbackPercent / 100on each losing bet, once per bet, at the rate of the user's current tier - Settles once per period, at the start of the next one in the operator's timezone (
PUT /v1/admin/settings/timezone, defaultEurope/Zagreb):dailyjust after local midnight,weeklyjust after midnight into Monday,monthlyjust after midnight into the 1st. Each settlement pays what accrued before that boundary; a loss after it waits for the next period - Each losing bet's cashback is settled exactly once, so a rerun, a restart or a second worker never pays it twice
- A voided bet takes its cashback back out of what has accrued. If that cashback was already settled to the player, FAST opens a reconciliation flag instead of taking it from later cashback
- Settlement fires one
loyalty.cashback_settledwebhook per user with the amount settled - You credit the user's sportsbook balance
API Reference
Operator (admin)
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /v1/admin/loyalty/config | Get loyalty config |
| PUT | /v1/admin/loyalty/config | Set or update config (partial) |
| GET | /v1/admin/loyalty/tiers | List tiers |
| POST | /v1/admin/loyalty/tiers | Create a tier |
| PUT | /v1/admin/loyalty/tiers/:id | Update a tier |
| DELETE | /v1/admin/loyalty/tiers/:id | Delete a tier (409 tier_in_use while users hold it) |
| GET | /v1/admin/loyalty/users | List members (tier by name, limit, offset) |
| GET | /v1/admin/loyalty/users/:userId | Member detail: loyalty and points history |
| POST | /v1/admin/loyalty/users/:userId/adjust | Add or remove points: { "points": 1000, "reason": "VIP welcome" }, returns newTotal |
| GET | /v1/admin/loyalty/stats | Program statistics |
Public (widget key)
| Method | Endpoint | Purpose |
|---|---|---|
| GET | /v1/users/:userId/loyalty | currentPoints, lifetimePoints, currentTier, nextTier (with pointsNeeded and progressPercent), cashbackPending, lastActivityAt |
| GET | /v1/loyalty/tiers | Public tier list (for the widget) |
SDK Usage
typescript
// Configure loyalty
await fast.admin.loyalty.setConfig({
pointRules: [
{ activity: 'bet_placed', pointsPerEurWagered: 1 },
{ activity: 'bet_won', pointsFlat: 5 },
],
cashbackEnabled: true,
cashbackSettleMode: 'weekly',
decayMode: 'monthly_percent',
decayPercent: 10,
demotionGraceDays: 14,
});
// Create a tier
await fast.admin.loyalty.createTier({ name: 'Gold', level: 3, minPoints: 5000, cashbackPercent: 3, benefits: ['Priority support'] });
// Bonus points for a VIP
await fast.admin.loyalty.adjustPoints('player-42', 1000, 'VIP welcome bonus');
// A user's status
const status = await fast.admin.loyalty.getUserLoyalty('player-42');Webhook Events
| Event | Data | When |
|---|---|---|
loyalty.tier_upgraded | newTier, newTierLevel, currentPoints | User promoted to a higher tier |
loyalty.tier_downgraded | newTier, currentPoints | User moved down after the grace period |
loyalty.cashback_settled | amount | A period's cashback settled, once per user per period; credit it |
How It Connects
- With an
achievement_earnedpoint rule, every earned achievement pays points loyalty_pointsreward type adds points directly (from missions, achievements, etc.): at once inautomode, on claim inclaimmode, once per reward- Cashback settlement sends a webhook for you to fulfil