DocsModulesMini Cart

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

Module

Mini 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

  1. 1Pick the tiersChoose what each tier adds: entries, cashback, points or perks.
  2. 2Match customersShow first-time buyers and loyal customers different offers.
  3. 3Show it in the cartThe upgrade appears before checkout, one tap to add.

Settings

FieldTypeWhat it does
tiersTier[]Upgrade options with a price and the rewards they add.
segmentsstring[]Customer types each tier is shown to.
placementenumWhere the upgrade shows: cart drawer, cart page or checkout.

Events

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

EventWhen it fires
upgrade.addedA customer added an upgrade to their cart.
upgrade.purchasedAn order with an upgrade was paid.

Example request

Get the upgrade offers for a cart, matched to the customer.

GET/carts/{cart_id}/upgrades
curl https://api.kwik.com/v1/carts/{cart_id}/upgrades \
  -H "Authorization: Bearer $KWIK_API_KEY"
Response · 200
{
  "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 →