Draft Example content for planning the Kwik docs. Endpoints, fields and events are placeholders until they ship.
ModuleMini Cart
Offer tier upgrades in the cart (standard, plus and premium) with rewards matched to each customer type. Upgrades add profit to the same order.
How it works
- 1Pick the tiersChoose what each tier adds: entries, cashback, points or perks.
- 2Match customersShow first-time buyers and loyal customers different offers.
- 3Show it in the cartThe upgrade appears before checkout, one tap to add.
Settings
| Field | Type | What it does |
|---|---|---|
tiers | Tier[] | Upgrade options with a price and the rewards they add. |
segments | string[] | Customer types each tier is shown to. |
placement | enum | Where the upgrade shows: cart drawer, cart page or checkout. |
Events
Kwik sends these to your webhook URL. See Webhooks for the payload and signatures.
| Event | When it fires |
|---|---|
upgrade.added | A customer added an upgrade to their cart. |
upgrade.purchased | An order with an upgrade was paid. |
Example request
Get the upgrade offers for a cart, matched to the customer.
curl https://api.kwik.com/v1/carts/{cart_id}/upgrades \
-H "Authorization: Bearer $KWIK_API_KEY" {
"cart_id": "cart_51c",
"segment": "first_time",
"tiers": [
{ "id": "plus", "price": 4.99, "adds": ["2x entries"] },
{ "id": "premium", "price": 9.99, "adds": ["5x entries", "10% cashback"] }
]
} Looking for the product view? See Mini Cart on the platform →