DocsModulesWaves

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

Module

Waves

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

  1. 1Set the depthHow many waves deep rewards go.
  2. 2Set the percentWhat each wave pays, usually less with each step.
  3. 3Track every waveLifetime attribution across the whole chain.

Settings

FieldTypeWhat it does
depthnumberHow many waves pay out.
percent_by_wavepercent[]Payout for wave 1, wave 2 and on.
bonusesBonus[]Extra rewards when a wave hits a target.

Events

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

EventWhen it fires
wave.orderAn order was attributed to a wave.
wave.rewardA wave reward was earned.

Example request

See how far a customer's referrals have spread.

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