DocsModulesReferrals

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

Module

Referrals

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

  1. 1Invite the right customersTop spenders, at the right order, not a sitewide banner.
  2. 2Unique code per linkEvery share link creates its own code, so codes cannot leak.
  3. 3Credit and rewardOrders are tied to the referrer for life. Both sides get rewarded.

Settings

FieldTypeWhat it does
eligibilityRule[]Which customers can refer, by order count or spend.
reward_referrerRewardWhat the person who shared earns.
reward_friendRewardWhat the new customer gets.
unique_codesbooleanGenerate a code per share link.

Events

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

EventWhen it fires
referral.link_createdA customer created a share link.
referral.convertedA referred friend placed an order.
reward.paidA referral reward was paid out.

Example request

Create a share link with its own coupon code.

POST/referrals/links
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" }'
Response · 200
{
  "url": "https://kwik.to/ava-7Hk2",
  "code": "AVA-7HK2",
  "unique": true
}

Looking for the product view? See Referrals on the platform →