DocsModulesCashback

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

Module

Cashback

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

  1. 1Set the rateA percentage back, by product, collection or customer type.
  2. 2Hold through returnsCashback stays pending until the return window closes.
  3. 3Customer choosesStore credit for the next order, or cash out.

Settings

FieldTypeWhat it does
ratepercentCashback rate on eligible spend.
pending_daysnumberDays to hold before cashback is available.
payout_optionsenum[]store_credit, cash or both.

Events

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

EventWhen it fires
cashback.pendingCashback was earned on an order.
cashback.availableThe return window closed and it can be spent.
cashback.redeemedThe customer used it or cashed out.

Example request

Read a customer's pending and available cashback.

GET/customers/{customer_id}/wallet
curl https://api.kwik.com/v1/customers/{customer_id}/wallet \
  -H "Authorization: Bearer $KWIK_API_KEY"
Response · 200
{
  "customer_id": "cus_8f2a",
  "cashback": { "pending": 12.00, "available": 18.40 },
  "currency": "USD"
}

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