DocsHow the modules work together
Coming soon Kwik's public API and MCP server are coming soon. These docs are an early preview, in the beginning stages: endpoints, fields and examples are samples and will change before launch. Brands on Kwik today can ask their account manager about integrations.
Read every docs page as one Markdown file, ready to paste into ChatGPT, Claude or any AI assistant.
Get startedHow The Modules Work Together.
What to show on a storefront, which rules to read from a brand's setup, and how to check the result of an order.
One order, three outcomes
A shopper opens a friend's link, buys a hoodie and earns giveaway entries. The friend earns a referral reward. If the shopper later shares their own link, the original friend may earn again through Waves. All three outcomes can come from the same brand program. Each has its own recipient, qualifying action and record in Kwik.
Use this guide to decide what to show on a storefront, which rules to read from the brand's configuration, and how to check the result of an order.
Start with the campaign
A brand owns the program. A campaign groups the audience, the rules for joining and the reward rules for one experience, such as a creator program or a VIP referral program. A module handles one part of that experience: Giveaways counts a buyer's entries, Referrals identifies who introduced the buyer, and Cashback can give the buyer money back.
A giveaway has its own prize, dates and earning periods inside the program. Ending a giveaway and ending someone's membership are different operations.
NoteMultiple campaigns per customer are being built now. Today most brands run one campaign per customer. The API preview is written for the multi-campaign model.
In the API preview, a customer can belong to several campaigns and has one active campaign. Read the active membership when showing personal benefits. Being in two campaigns does not give a customer both sets of rates. For a referred order, check the buyer's offer and the ambassador's earning terms separately: a shopper can get a friend offer without qualifying for the ambassador's commission.
| When configuring a campaign | Example decision | Where the customer sees it |
|---|---|---|
| Who can join? | Open enrollment, invitation, or a rule based on purchases | Branded sign-up page or an invitation in the rewards widget |
| What earns a reward? | Eligible spend, a completed referral order or a set action | Product page, cart estimate or ways-to-earn list |
| Who receives it? | The buyer earns entries, the referring customer earns points | Each person's own tracker or rewards history |
| Which offer applies now? | This week's giveaway rate, a product override or a member benefit | Product badge, referral offer or Mini Cart |
| When can they use it? | Points reach a redemption level, or cashback clears its hold and is claimed | Rewards widget, claim page or wallet |
Statuses, segments, tags and gifts
NoteStatuses are a newer design that is rolling out by brand. The API preview uses active campaign membership instead. Confirm which model a brand uses before building enrollment or showing a tier.
In the Status design, personal benefits come from one active status inside the brand program.
- Segment answers "who qualifies?" A customer can be in several segments, such as repeat buyers, subscribers and an imported VIP list.
- Tag labels a customer for targeting or export.
- Status decides what that person can earn or access. When several match, the configured priority wins.
Qualifying can depend on purchases in a period, a subscription, a sign-up form or an invitation. The design also allows a manual override, and a fallback status when someone stops qualifying.
A gift is given once, when someone reaches a status. An ongoing benefit applies to their later qualifying activity. For example, a new VIP might get 500 points once and a member discount on every future purchase. Showing the VIP badge on each visit must never give the welcome gift again. Gift options in the design include points, entries, cashback, commissions, a free product and free shipping. What is available depends on the brand's rollout.
Where the pieces meet on a Shopify store
| Surface | What to show | What to read |
|---|---|---|
| Product card or page | Entries, points or cashback for this item, plus any referral offer | Current promotion, eligible price, product rule and customer context |
| Cart drawer or cart page | Order-level estimate and any optional upgrade | All eligible lines, quantities, selected tier and qualifying bonuses |
| Thank-you page or claim email | Reward earned on this order, claim action and share link if eligible | Completed order, recipient, reward state and claim deadline |
| Entry tracker | Entries for the selected giveaway and how they were earned | Customer, giveaway and entry history |
| Branded widget or customer account | Balances, next loyalty reward, share tools and ways to redeem | Selected brand and program, membership and available rewards |
| Klaviyo email or SMS | A timely reminder, like an unclaimed reward or progress to a reward | The Kwik metric, event properties, profile data and channel consent |
In Klaviyo, use the order event's award for "you earned 200 points on this purchase." Use an up-to-date balance for "you have 2,450 points available." A later purchase or redemption can make those two numbers differ. Use the metric and property names in the connected account.
Custom storefronts (Hydrogen)
Share links arrive with a waveLink code, for example /products/hoodie?waveLink=ABC123. Keep the exact case of waveLink.
- Capture the code when the shopper arrives.
- Carry it across navigation.
- Save it as a cart attribute before checkout, keeping any attributes already on the cart.
- Test every path to checkout: the cart drawer, direct-to-checkout, quick-add and bundles.
On a completed test order, check the exact field the brand's Kwik integration reads. Some setups also need an order tag next to the cart attribute. Then confirm Kwik credited the right referrer.
The documented Hydrogen setup uses a 30-day attribution cookie and a separate 24-hour cache for the rep's profile. Confirm the store's attribution policy before reusing those durations.
Step-by-step code for all of this, plus timers, multiplier badges and cart entry estimates, is in Storefront integration.
For an optional "Shopping with Ava" banner, Kwik provides a share-link lookup that returns the rep's name and photo. Ask your Kwik contact for its address. Hide old profile data when a new link can't be looked up, and never block checkout if the lookup fails. A profile lookup only checks the display. A completed test order checks attribution.
API access today, and the preview
Brands integrating today should get the supported operations, credentials and setup details for their store from their Kwik contact. The self-serve REST API, public webhooks and MCP server in these docs are previews. Their sample URLs, payloads and tool names may change before launch.
| Preview area | What it is for |
|---|---|
| Customers and ambassadors | Find a customer by email, keep the customer id, and see or set ambassador status |
| Campaigns and share codes | Read membership and performance, manage enrollment, or get a customer's share link |
| Loyalty | Pick a loyalty program, then read the customer's balance and transactions in it |
| Giveaways | Pick a campaign, giveaway and earning period, then read ways to earn, participants or one customer's entries |
| Reporting | Read attributed revenue by program and period, or revenue-share amounts |
| Webhooks and MCP | Get notified, or ask an AI assistant about program data, once those ship |
For a custom account page, start with the shopper's brand-specific customer record. Pick the loyalty program before showing points, and the giveaway before showing entries. Get the shopper's share link if they can refer. Keep brand credentials on the server, and return only the fields the signed-in customer is allowed to see.
Module by module
Each module page has an "In practice" section with the rules, examples and edge cases for that module.
- Giveaways: Turn purchases and actions into giveaway entries.
- Mini Cart: Offer tier upgrades in the cart (standard, plus and premium) with rewards matched to each customer type.
- Cashback: Pay customers back after they buy instead of discounting up front.
- Loyalty Points: Points customers can see, earn and spend.
- Referrals: Give your best customers a share link with its own unique code, credit every order they bring in, and reward both people with cashback, points, entries, commissions or waves..
- Waves: Rewards that ripple past the first referral: when a referred friend refers someone, the original customer earns too.
- Data And Tracking: First-party tracking with the Kwik Pixel, attribution by code, link and redirect, and reporting on true lifetime value by customer, ambassador type and campaign..