Draft Example content for planning the Kwik docs. Endpoints, fields and events are placeholders until they ship.
ModuleCashback
Pay customers back after they buy instead of discounting up front. Cashback lands in the Kwik wallet once the return window clears, as cash or store credit.
How it works
- 1Set the rateA percentage back, by product, collection or customer type.
- 2Hold through returnsCashback stays pending until the return window closes.
- 3Customer choosesStore credit for the next order, or cash out.
Settings
| Field | Type | What it does |
|---|---|---|
rate | percent | Cashback rate on eligible spend. |
pending_days | number | Days to hold before cashback is available. |
payout_options | enum[] | store_credit, cash or both. |
Events
Kwik sends these to your webhook URL. See Webhooks for the payload and signatures.
| Event | When it fires |
|---|---|
cashback.pending | Cashback was earned on an order. |
cashback.available | The return window closed and it can be spent. |
cashback.redeemed | The customer used it or cashed out. |
Example request
Read a customer's pending and available cashback.
curl https://api.kwik.com/v1/customers/{customer_id}/wallet \
-H "Authorization: Bearer $KWIK_API_KEY" {
"customer_id": "cus_8f2a",
"cashback": { "pending": 12.00, "available": 18.40 },
"currency": "USD"
} Looking for the product view? See Cashback on the platform →