Incentive Embedding guide →

Widget reference

Every FYNXT Incentive widget and the attributes it accepts. All widgets share a set of common attributes for identity and theming; each widget then adds a few of its own. See Embedding & auth for how to obtain an embed-token.

Common attributes

Every fynxt-* element accepts these. Identity is required — supply either an embed-token (recommended) or the Attribute Auth fields.

AttributeTypeDescription
embed-tokenstringShort-lived JWT from your backend. Access Key Embed.
data-participant-idstringParticipant identity for Attribute Auth (no backend).
program-idstringThe incentive program to scope data to.
themestring"light" (default) or "dark".
accentstringHex highlight color. Defaults to FYNXT brand blue.
localestringBCP-47 locale for formatting, e.g. "en-AE".
currencystring3-letter ISO code overriding the program's display currency.

<fynxt-rebate-summary>

KPI cards showing total, pending and on-hold rebates earned by the participant.

AttributeTypeDescription
metricsstringComma-separated cards to show: total, pending, on-hold, settled. Defaults to all.
periodstring"month", "quarter", "ytd" or "all". Defaults to "month".

<fynxt-rebate-trend>

A bar chart of monthly rebate earnings, optionally split by commission type.

AttributeTypeDescription
monthsnumberHow many months of history to plot. Defaults to 12.
breakdownstring"commission-type" to stack by type, or "none". Defaults to "none".

<fynxt-ib-network>

A table of the participant's sub-IB network — downline volume, active clients and earnings.

AttributeTypeDescription
data-partner-idstringThe IB whose network to display. Defaults to the token's participant.
depthnumberHow many downline levels to include. Defaults to 1.
page-sizenumberRows per page. Defaults to 10.

<fynxt-referral-summary>

Referral performance: clicks, registrations, conversions and attributed value.

AttributeTypeDescription
data-partner-idstringThe partner to report on. Defaults to the token's participant.
periodstring"month", "quarter", "ytd" or "all".

<fynxt-leaderboard>

A live contest leaderboard with rank, participant and score. Updates in real time.

AttributeTypeDescription
contest-idstringThe contest to display. Required for this widget.
limitnumberNumber of ranks to show. Defaults to 10.
highlight-selfbooleanPin the signed-in participant's row even if outside limit. Defaults to true.

<fynxt-loyalty-balance>

The participant's loyalty points balance and current tier.

AttributeTypeDescription
show-tierbooleanShow the tier badge and progress to next tier. Defaults to true.
compactbooleanRender as a single inline badge instead of a card. Defaults to false.

Events

Widgets emit standard DOM CustomEvents you can listen for on the element. They bubble and are composed, so a single listener on a container works.

EventFired whendetail
fynxt:readyWidget has authenticated and rendered its first data.{ widget }
fynxt:errorAuth or data load failed.{ code, message }
fynxt:token-expiringThe embed-token is about to expire.{ expiresAt }
fynxt:selectThe user clicks a row / bar / rank inside the widget.{ type, id, value }