order.placed event flow.
Planned product contract
The planned Stable behavior uses one Loyalty domain as the points authority. Earning and redemption start disabled. You can configure:- points earned per dollar
- points required for one dollar of redemption
- activation delay and expiration
- minimum redemption and maximum redemption percentage
- eligible products and channels
modules/loyalty · npm: @86d-store/loyalty
Installation
The Loyalty Module requires the Customers Module to be enabled.
Configuration
The exportedLoyaltyOptions fields do not currently configure the controller. Use active rule records created through Store Admin or the administrative rule endpoints.
Store endpoints
Redeem points (POST /loyalty/redeem)
description. It returns the resulting LoyaltyTransaction when the controller accepts the deduction. There is no working minRedemption option or monetary redemption conversion in the current implementation.
Calculate points (GET /loyalty/calculate)
Pass amount as a numeric query parameter:
Admin endpoints
Store components
Use these components in your MDX Template files.PointsBalance
Displays the Customer’s current point balance with a tier badge and lifetime earn/redeem stats.
string
The Customer’s ID. If omitted, the component shows a sign-in prompt.
TierProgress
Shows the Customer’s current tier and a visual progress bar toward the next tier. Displays a multiplier badge when the current tier has a points multiplier greater than 1×.
string
The Customer’s ID. If omitted, the component shows a sign-in prompt.
PointsHistory
A filterable table of the Customer’s point transactions (earn, redeem, adjust, expire).
string
The Customer’s ID. If omitted, the component shows a sign-in prompt.
number
default:"10"
Maximum number of transactions to display.
LoyaltyPage
A full-page loyalty view that composes PointsBalance, TierProgress, and PointsHistory in a two-column layout.
string
The Customer’s ID. If omitted, the component shows a sign-in prompt.