Draft Example content for planning the Kwik docs. Endpoints, fields and events are placeholders until they ship.
ModuleWaves
Rewards that ripple past the first referral: when a referred friend refers someone, the original customer earns too. You set the depth and the percent for each wave.
How it works
- 1Set the depthHow many waves deep rewards go.
- 2Set the percentWhat each wave pays, usually less with each step.
- 3Track every waveLifetime attribution across the whole chain.
Settings
| Field | Type | What it does |
|---|---|---|
depth | number | How many waves pay out. |
percent_by_wave | percent[] | Payout for wave 1, wave 2 and on. |
bonuses | Bonus[] | Extra rewards when a wave hits a target. |
Events
Kwik sends these to your webhook URL. See Webhooks for the payload and signatures.
| Event | When it fires |
|---|---|
wave.order | An order was attributed to a wave. |
wave.reward | A wave reward was earned. |
Example request
See how far a customer's referrals have spread.
curl https://api.kwik.com/v1/customers/{customer_id}/waves \
-H "Authorization: Bearer $KWIK_API_KEY" {
"customer_id": "cus_8f2a",
"waves": [
{ "wave": 1, "customers": 3, "earned": 45.00 },
{ "wave": 2, "customers": 9, "earned": 22.50 },
{ "wave": 3, "customers": 27, "earned": 11.25 }
]
} Looking for the product view? See Waves on the platform →