Draft Example content for planning the Kwik docs. Endpoints, fields and events are placeholders until they ship.
ModuleGiveaways
Turn purchases and actions into sweepstakes entries. Set multipliers by week, campaign or product, track every customer's entries, and offer a free method of entry (AMOE).
How it works
- 1Create a giveawayName it, set the prize, the dates and the official rules.
- 2Set ways to earnEntries per dollar, per action, and multipliers by product or week.
- 3Show entries everywhereProduct cards, cart, entry tracker and emails show what each order earns.
- 4Draw and convertPick winners, then convert leftover entries into credit for the next order.
Settings
| Field | Type | What it does |
|---|---|---|
entries_per_dollar | number | Base entries earned for each dollar spent. |
multipliers | Multiplier[] | Bonus multipliers by product, collection or date range. |
amoe_enabled | boolean | Allow a free entry with no purchase necessary. |
ends_at | timestamp | When entries stop counting. |
Events
Kwik sends these to your webhook URL. See Webhooks for the payload and signatures.
| Event | When it fires |
|---|---|
entry.created | A customer earned entries from an order or action. |
giveaway.ended | The giveaway closed and entries are final. |
winner.selected | A winner was drawn. |
Example request
Read a customer's entry balance and where it came from.
curl https://api.kwik.com/v1/customers/{customer_id}/entries \
-H "Authorization: Bearer $KWIK_API_KEY" {
"customer_id": "cus_8f2a",
"giveaway_id": "gw_lambo_2026",
"entries": 8970,
"history": [
{ "source": "product_multiplier", "label": "Trail Runner 30x", "entries": 3600 },
{ "source": "order", "label": "Order #1042", "entries": 450 },
{ "source": "amoe", "label": "Free entry", "entries": 1 }
]
} Looking for the product view? See Giveaways on the platform →