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

# Loyalty Programs

> Understand balances, earning events, expiration policies, and loyalty audiences.

A Fanfare loyalty program gives each consumer a points balance that can grow through configured earning events and change through manual adjustments. The public model is intentionally simple: consumers can see their current balance, lifetime points, upcoming expirations, and point history.

Use loyalty when you want rewards to reflect real customer participation across experiences, purchases, messaging, and other engagement. Use audiences when you want those balances to drive access decisions, such as member-only launches or tiered early access.

Fanfair is Fanfare's name for the existing optional loyalty prioritisation in queues and draws. It uses the distribution's `loyaltyBiasEnabled` setting, which is off by default. Enabling Fanfair does not create a separate program or change how points are earned.

## Core Model

| Concept | Meaning |
| - | - |
| Balance | The consumer's current spendable or displayable points. |
| Lifetime points | Points accumulated over time, useful for status and long-term recognition. |
| History | A ledger of point changes, including earned points, deductions, expirations, and admin adjustments. |
| Event-based earning | Configured events award points when consumers take eligible actions. |
| Manual adjustments | Admins can add or deduct points for support, compensation, or correction workflows. |
| Loyalty audiences | Audience rules can use loyalty fields to group consumers for access, messaging, or reporting. |

## How Earning Works

Fanfare maps earning rules to event categories instead of asking you to define every event from scratch. Each category has default point values that can be adjusted in the dashboard.

| Category | Examples |
| - | - |
| Engagement | Page views, product views, product clicks, searches. |
| Conversion | Add to cart, view cart, begin checkout, purchase. |
| Social/message | QR scans, message opens, reads, and clicks. |
| Queue | Entering, being admitted, and completing queue-based access. |
| Draw | Entering, winning, and completing draw-based experiences. |
| Auction | Placing or winning bids. |
| Appointment | Booking, confirming, checking in, or completing appointments. |
| Waitlist | Entering a waitlist. |

Events with a configured value of `0` do not increase the consumer's balance. The dashboard focuses on customer-relevant earning events and hides system or negative events that are not useful for normal program configuration.

## Expiration Policies

Loyalty settings control whether points expire and how expiration is presented to consumers.

| Policy | Customer-visible behavior |
| - | - |
| None | Points do not expire. Consumers do not need an expiration reminder for their balance. |
| Fixed | Points expire based on the earning bucket after the configured number of months. When points are redeemed or deducted, older expiring points are consumed first at a conceptual level. |
| Inactivity | Points expire after the configured number of months without earning or redemption activity. Earning or redeeming points resets the customer's activity window. |

Use fixed expiration when point age should matter. Use inactivity expiration when the goal is to encourage continued participation. Use no expiration when points are a long-lived customer benefit.

## Limits

Limits keep program behavior predictable. Each limit can be configured or left unset.

| Limit | Behavior |
| - | - |
| Maximum balance | Caps the consumer's current balance. Leave unset for no configured maximum. |
| Daily earn cap | Caps points a consumer can earn in a day. Leave unset for no configured daily cap. |
| Monthly earn cap | Caps points a consumer can earn in a month. Leave unset for no configured monthly cap. |

Limits apply to earning and balance changes according to the configured program contract. They should be set high enough for legitimate customer journeys and low enough to match your reward budget.

## Audiences And Tiers

Loyalty fields can be used with audiences to create tiers and targeted access groups. For example, you might create Bronze, Silver, and Gold audiences from current balance or lifetime points, then attach those audiences to early-access sequences.

Loyalty audiences are still audiences: they determine who qualifies for a segment, while the loyalty program determines how points are earned, deducted, expired, and displayed.

## Fanfair Loyalty Prioritisation

Enable **Bias toward loyal consumers**, beside the **Learn about Fanfair loyalty prioritisation** documentation link, in a queue or draw's configuration. The existing `loyaltyBiasEnabled` flag controls this setting for each distribution.

| Distribution | How Fanfair works |
| - | - |
| Queue, before opening | Entrants receive randomized order weighted by loyalty points. More points increase priority weight, with diminishing returns and a cap. Admission is not guaranteed. |
| Queue, after opening | New entrants join in first-in, first-out order behind the pre-open entrants. Loyalty points do not reorder these new entries. |
| Draw | Loyalty points weight the randomized order stored when entrants join. Selection proceeds through that order subject to eligibility, available stock, and the draw's configuration. Winning is not guaranteed. |

The weight uses the consumer's points available at entry. It is an ordering weight, not a stated multiplier on winning probability. Changing points later does not continuously reorder an existing entry.

When the flag is false, pre-open queue order and draw order use neutral randomization; post-open queue entries remain first-in, first-out. The standard SDK widget shows **“Fairness provided by Fanfair”** beneath the Enter button only when the current queue or draw explicitly reports `loyaltyBiasEnabled: true`. A false or missing flag shows no Fanfair claim. The line appears only on the Enter panel; automatic or custom entry flows may skip it. The existing **Powered by Fanfare** footer stays the same.

Keep customer copy qualitative. For queues with Fanfair enabled, use status language such as "you're in line" rather than a precise numeric position. For draws, confirm entry and outcome timing without promising fixed odds, equal odds, or a guaranteed outcome. Fanfair does not override eligibility rules or reserve admission for every participant.

## Where To Configure

* [Loyalty dashboard overview](https://docs.fanfare.io/dashboard/loyalty/overview.md)
* [Loyalty configuration](https://docs.fanfare.io/dashboard/loyalty/configuration.md)
* [Points management](https://docs.fanfare.io/dashboard/loyalty/points-management.md)
* [Configure queue experiences](https://docs.fanfare.io/dashboard/experiences/configure-queue.md)
* [Configure draw experiences](https://docs.fanfare.io/dashboard/experiences/configure-lottery.md)
* [Consumer Loyalty API](https://docs.fanfare.io/api/consumer-api/loyalty.md)
* [Loyalty program use case](https://docs.fanfare.io/guides/use-cases/loyalty-program.md)


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