Draft Example content for planning the Kwik docs. Endpoints, fields and events are placeholders until they ship.
ModuleReferrals
Give your best customers a share link with its own unique code, credit every order they bring in, and reward both people with cashback, points, entries, commissions or waves.
How it works
- 1Invite the right customersTop spenders, at the right order, not a sitewide banner.
- 2Unique code per linkEvery share link creates its own code, so codes cannot leak.
- 3Credit and rewardOrders are tied to the referrer for life. Both sides get rewarded.
Settings
| Field | Type | What it does |
|---|---|---|
eligibility | Rule[] | Which customers can refer, by order count or spend. |
reward_referrer | Reward | What the person who shared earns. |
reward_friend | Reward | What the new customer gets. |
unique_codes | boolean | Generate a code per share link. |
Events
Kwik sends these to your webhook URL. See Webhooks for the payload and signatures.
| Event | When it fires |
|---|---|
referral.link_created | A customer created a share link. |
referral.converted | A referred friend placed an order. |
reward.paid | A referral reward was paid out. |
Example request
Create a share link with its own coupon code.
curl -X POST https://api.kwik.com/v1/referrals/links \
-H "Authorization: Bearer $KWIK_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "customer_id": "cus_8f2a", "destination": "/products/trail-runner" }' {
"url": "https://kwik.to/ava-7Hk2",
"code": "AVA-7HK2",
"unique": true
} Looking for the product view? See Referrals on the platform →