Overview
The mode on your connect token controls what the user does in Benji Connect: link their loyalty account, move points (Transfer), or spend points (Redeem). Modes apply to both Benji Hosted Connect and the Benji Connect SDK.| Mode | Value | Typical use |
|---|---|---|
| Connect | 1 | User links their loyalty account to your program. |
| Transfer | 3 | User transfers points (can be preselected amount via connect token custom_attributes.actions). |
| Redeem | 4 | User redeems points for offers or perks. |
Connect (mode: 1)
Default linking flow: authenticate and connect the member’s loyalty account. Use a minimal Create Token body with partnership_id and mode: 1 (or rely on API defaults where supported).
Transfer (mode: 3)
Used when the user should move points as part of the flow. Customize by supplying custom_attributes.actions with one or more action objects:
mode:3(Transfer)amount: Preselected points amountallows_editing: Whether the user can change the amount in the UI
Redeem (mode: 4)
Used when the user should redeem points. Connect token mode set to 4. Customize offers and perks by adding redeem actions to the partnership campaign in Pilot.
See the Redeem example on Create Token.
Benji Hosted Connect query parameters
On Benji Hosted Connect,mode and optional amount in the URL can influence token creation for transfer/redeem-style entry points. Prefer server-side Create Token for production so amounts and partnership context are authoritative.