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

Kwik developer docs

Build With Kwik.

Everything you need to run Kwik's reward modules on your store: what each module does, how to set it up, and the API behind it.

Start here

Quickstart

  1. Get your API key. In the Kwik vendor dashboard, open Settings, then API keys. Keep it on your server.
  2. Install the Kwik Pixel. Add one script to your store theme. It records first-party clicks, codes and orders.
    HTML
    <script async src="https://cdn.kwik.com/pixel.js"
      data-store="YOUR_STORE_ID"></script>
  3. Make your first request. Read a customer's wallet.
    GETcURL
    curl https://api.kwik.com/v1/customers/cus_8f2a/wallet \
      -H "Authorization: Bearer $KWIK_API_KEY"
  4. Listen for events. Add a webhook URL to hear when customers earn, redeem and refer. See Webhooks.

How Kwik works

Customers earn rewards from the modules you turn on. Every reward lands in one place, tied to the order and the person that drove it.

Customer
A shopper on your store. One Kwik login holds their rewards from every brand.
Wallet
Where a customer's cashback, store credit and commissions live, pending or available.
Reward
What a customer earns: cashback, points, entries, credit or a commission.
Program
Your mix of modules and rules, set up for your store.
Attribution
How Kwik ties an order to the code, link or person that drove it, for life.
Wave
A referral of a referral. Waves let rewards travel past the first share.

Modules

Seven modules, one platform. Each page covers how it works, the settings, the events it sends and an example request.