DocsModulesLoyalty Points

Draft Example content for planning the Kwik docs. Endpoints, fields and events are placeholders until they ship.

Module

Loyalty 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

  1. 1Set earning rulesPoints per dollar, plus actions like reviews, referrals and birthdays.
  2. 2Add rewardsFree products, discounts or entries at set point levels.
  3. 3Show progressCustomers see their balance, history and the next reward.

Settings

FieldTypeWhat it does
points_per_dollarnumberPoints earned per dollar spent.
actionsAction[]Extra ways to earn and what each is worth.
rewardsReward[]What points unlock, and at how many points.

Events

Kwik sends these to your webhook URL. See Webhooks for the payload and signatures.

EventWhen it fires
points.earnedA customer earned points.
reward.unlockedA customer reached a reward level.
points.redeemedPoints were spent.

Example request

Read a balance, the next reward and recent history.

GET/customers/{customer_id}/points
curl https://api.kwik.com/v1/customers/{customer_id}/points \
  -H "Authorization: Bearer $KWIK_API_KEY"
Response · 200
{
  "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 →