Skip to content

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 ​

  1. Operator sets the point rules, decay, cashback and tiers in the backoffice
  2. Each accepted bet (and each won settlement or earned achievement, if you add a rule for it) earns points
  3. Points unlock tiers: the user's tier is the highest one whose minPoints their current points reach
  4. A tier can carry a cashbackPercent: with cashback on, each losing bet accrues that share of its stake
  5. Accrued cashback settles once per period and fires loyalty.cashback_settled; you credit it
  6. Optional monthly decay lowers points; a user below their tier moves down after a grace period

Deployment Modes ​

ModeDescription
Challenges + LoyaltyPoints earned on all accepted bets, whether or not the user is in a challenge
Loyalty onlyStandalone 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.

FieldDefaultDescription
pointRules[]List of point rules, see below
decayModenonenone, monthly_reset (points back to 0) or monthly_percent
decayPercentWhole number 0 to 100: share of points removed each month in monthly_percent mode
cashbackEnabledfalseTurns tier cashback on
cashbackSettleModeweeklydaily, weekly or monthly, in the operator's timezone; see Cashback
demotionEnabledtrueWhether a user who falls below their tier is moved down
demotionGraceDays30Days a user may sit below their tier before the move, 0 or more; 0 means on the next run
enabledtrueTurns the whole program on or off

Point rules ​

Each rule names one activity:

FieldDescription
activitybet_placed, bet_won or achievement_earned
pointsPerEurWageredPoints per whole EUR of stake. Used for bet_placed only: the stake is rounded down (a 5.90 EUR stake counts as 5)
pointsFlatFixed points per event. Used for bet_won and achievement_earned, and for bet_placed when there is no pointsPerEurWagered
maxPerDayMost 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 ​

FieldRequiredDescription
nameYesTier name ("Bronze", "Gold")
levelYesWhole number rank; higher is better
minPointsYesPoints needed to reach the tier
cashbackPercentNoCashback on the stake of each losing bet (default 0)
benefitsNoList of benefits shown to the user
iconNoIcon name for the widget (default star)
colorNoHex 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 for demotionGraceDays; if they are still below once that has passed, they move to the tier their points qualify for and loyalty.tier_downgraded fires. 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 cashbackEnabled and a tier with cashbackPercent above 0
  • Accrues stake * cashbackPercent / 100 on 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, default Europe/Zagreb): daily just after local midnight, weekly just after midnight into Monday, monthly just 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_settled webhook per user with the amount settled
  • You credit the user's sportsbook balance

API Reference ​

Operator (admin) ​

MethodEndpointPurpose
GET/v1/admin/loyalty/configGet loyalty config
PUT/v1/admin/loyalty/configSet or update config (partial)
GET/v1/admin/loyalty/tiersList tiers
POST/v1/admin/loyalty/tiersCreate a tier
PUT/v1/admin/loyalty/tiers/:idUpdate a tier
DELETE/v1/admin/loyalty/tiers/:idDelete a tier (409 tier_in_use while users hold it)
GET/v1/admin/loyalty/usersList members (tier by name, limit, offset)
GET/v1/admin/loyalty/users/:userIdMember detail: loyalty and points history
POST/v1/admin/loyalty/users/:userId/adjustAdd or remove points: { "points": 1000, "reason": "VIP welcome" }, returns newTotal
GET/v1/admin/loyalty/statsProgram statistics

Public (widget key) ​

MethodEndpointPurpose
GET/v1/users/:userId/loyaltycurrentPoints, lifetimePoints, currentTier, nextTier (with pointsNeeded and progressPercent), cashbackPending, lastActivityAt
GET/v1/loyalty/tiersPublic 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 ​

EventDataWhen
loyalty.tier_upgradednewTier, newTierLevel, currentPointsUser promoted to a higher tier
loyalty.tier_downgradednewTier, currentPointsUser moved down after the grace period
loyalty.cashback_settledamountA period's cashback settled, once per user per period; credit it

How It Connects ​

  • With an achievement_earned point rule, every earned achievement pays points
  • loyalty_points reward type adds points directly (from missions, achievements, etc.): at once in auto mode, on claim in claim mode, once per reward
  • Cashback settlement sends a webhook for you to fulfil

BLACKLINE CONSULTING d.o.o.