Learn how to implement a loyalty points system with Blnk.
Customer Main Wallet
are used for the purchase, contributing to @RevenueUSD
.
Once the purchase is completed, points are awarded from the @PointsPool
to the Customer Points Wallet
.
@RevenueUSD
: An internal balance representing the business’ revenue.@PointsPool
: An internal balance tracking the total points issued to customers.Customer Points Wallet
to @PointsPool
.
@PointsPool
records all issued points using the debit_balance
parameter and tracks all redeemed points using the credit_balance
parameter.http://localhost:5001
).YOUR_API_KEY
in the code examples). Required for authenticated requests.Points Wallet
.Main Wallet
would be $80 instead of $100.Customer Points Wallet
to @PointsPool
.Customer Main Wallet
with the final discounted cost.