Draft Example content for planning the Kwik docs. Endpoints, fields and events are placeholders until they ship.
ModuleLoyalty Points
Points customers can see, earn and spend. Set points per dollar and per action, add tiers and milestone rewards, and show how far each customer is from a free reward.
How it works
- 1Set earning rulesPoints per dollar, plus actions like reviews, referrals and birthdays.
- 2Add rewardsFree products, discounts or entries at set point levels.
- 3Show progressCustomers see their balance, history and the next reward.
Settings
| Field | Type | What it does |
|---|---|---|
points_per_dollar | number | Points earned per dollar spent. |
actions | Action[] | Extra ways to earn and what each is worth. |
rewards | Reward[] | What points unlock, and at how many points. |
Events
Kwik sends these to your webhook URL. See Webhooks for the payload and signatures.
| Event | When it fires |
|---|---|
points.earned | A customer earned points. |
reward.unlocked | A customer reached a reward level. |
points.redeemed | Points were spent. |
Example request
Read a balance, the next reward and recent history.
curl https://api.kwik.com/v1/customers/{customer_id}/points \
-H "Authorization: Bearer $KWIK_API_KEY" {
"customer_id": "cus_8f2a",
"balance": 2450,
"next_reward": { "name": "Wireless Headphones", "points": 3000, "away": 550 },
"history": [
{ "label": "Order #1042", "points": 240 },
{ "label": "Product review", "points": 100 }
]
} Looking for the product view? See Loyalty Points on the platform →