DocsModulesGiveaways

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

Module

Giveaways

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

  1. 1Create a giveawayName it, set the prize, the dates and the official rules.
  2. 2Set ways to earnEntries per dollar, per action, and multipliers by product or week.
  3. 3Show entries everywhereProduct cards, cart, entry tracker and emails show what each order earns.
  4. 4Draw and convertPick winners, then convert leftover entries into credit for the next order.

Settings

FieldTypeWhat it does
entries_per_dollarnumberBase entries earned for each dollar spent.
multipliersMultiplier[]Bonus multipliers by product, collection or date range.
amoe_enabledbooleanAllow a free entry with no purchase necessary.
ends_attimestampWhen entries stop counting.

Events

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

EventWhen it fires
entry.createdA customer earned entries from an order or action.
giveaway.endedThe giveaway closed and entries are final.
winner.selectedA winner was drawn.

Example request

Read a customer's entry balance and where it came from.

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