# Coupons, trials & deposits

> Convert hesitant visitors with launch promo codes, timed free trials, partial booking deposits, and bundle pricing — all processed cleanly through Stripe.

- Canonical: https://exaspark.ai/docs/coupons-trials-and-deposits/

## Choosing the right conversion incentive

First-time visitors hesitate when asked to pay full price for a brand they discovered five minutes ago. Picking the right low-friction offer — whether a launch discount code, a 7-day trial, a `$25` booking deposit, or a bundle savings rule — removes risk while keeping revenue predictable.

Because **ExaSpark charges a 0% platform fee** across every Stripe checkout, every dollar you collect after standard Stripe card processing fees stays in your business.

| Conversion offer | Best fit for | Friction level | Main risk to guard against | Stripe mechanism |
| --- | --- | --- | --- | --- |
| **Promo / coupon code** | Product launches, creator referrals, holiday sales | Low | Uncapped viral leaks or stacking beyond margin | Coupons + Promotion Codes (`allow_promotion_codes: true`) |
| **Card-required free trial** | High-value SaaS tools, paid communities | Medium | Surprise renewal chargebacks or repeat-trial farming | `subscription_data.trial_period_days` (7 or 14 days) |
| **No-card trial / freemium** | Self-serve utilities where users need instant output | Very low | Lower trial-to-paid conversion without timely upgrade prompts | App-managed `trial_ends_at` timestamp in Cloud |
| **Partial booking deposit** | Salons, photo studios, coaches, clinics, rentals | Low | Double bookings or forgotten remaining balances | Upfront Stripe Checkout deposit + balance tracker |
| **Bundle / volume discount** | Coffee roasters, apparel shops, multi-session packs | Low | Client-side price tampering in browser DevTools | Server-calculated bundle price lines or Stripe tiered pricing |

## Launch coupons and customer-facing promo codes

Stripe intentionally splits discounts into two objects so your marketing team can run seasonal campaigns directly from Stripe Dashboard without touching app code:

- **Coupon:** The reusable discount rule itself — for example, `25% off for 3 months` (`repeating`), `$15 off once` (`once`), or `20% off forever` (`forever`).
- **Promotion Code:** The customer-facing string mapped to a coupon (such as `LAUNCH25` or `FOUNDER50`), complete with operational guardrails: expiration timestamp (`expires_at`), total cap (`max_redemptions`), minimum cart value (`minimum_amount`), and `first_time_transaction: true`.

When creating Stripe Checkout Sessions on your server, pass `allow_promotion_codes: true`. Stripe renders an optional promo-code box directly inside hosted Checkout, validates restrictions automatically, calculates tax on the post-discount subtotal, and sends the exact `amount_subtotal`, `total_details.amount_discount`, and `amount_total` inside `checkout.session.completed`.

> **Note:** **Never trust client-computed discounts.** If your storefront lets users enter a promo code before Checkout, pass the validated Stripe Promotion Code ID from your server — never accept a browser-submitted `discountedPrice` field.

## Implementing 7-day and 14-day free trials cleanly

Timed trials work best when the customer sees clear value inside the first 48 hours and never feels surprised when billing starts.

### Card-upfront vs cardless trials

With a **card-upfront Stripe trial**, set `subscription_data.trial_period_days: 7` (or `14`) on your Checkout Session. Stripe collects the card immediately at `$0.00`, creates the subscription with `status: 'trialing'`, and converts it to `active` automatically when the trial ends unless the subscriber cancels first.

With a **cardless trial**, grant new sign-ups a `trial_ends_at` timestamp in your Cloud `users` table and check `now() < user.trial_ends_at` server-side. Prompt users to add a card through Stripe Checkout once the trial expires.

### Preventing repeat-trial abuse and surprise disputes

Two lightweight engineering safeguards eliminate 90% of trial headaches:

- **One trial per account (`has_used_trial`).** Store a boolean `has_used_trial` on your `users` table and flip it to `true` the first time `customer.subscription.created` fires. When a previously canceled member resubscribes later, omit `trial_period_days` so returning accounts bill immediately instead of farming infinite free trials.
- **Transparent 3-day reminder email.** Stripe automatically sends a `customer.subscription.trial_will_end` webhook exactly three days before a trial converts to a paid charge. Trigger a clear, helpful branded email stating the exact charge amount, renewal date, and one-click Customer Portal cancel link — cutting trial chargebacks dramatically.

## Partial booking deposits and balance-due workflows

Local service businesses — portrait studios, courts, salons, contractors, and wellness clinics — use upfront deposits (`$20` to `$50`, or `25%` of the session total) to eliminate casual no-shows while keeping booking friction low.

Store all monetary figures in **integer cents** on your `bookings` table so subtotal, deposit, discount, and balance arithmetic never suffers from floating-point penny drift:

```json
{
  "booking_id": "bkg_8821",
  "service_name": "60-Min Portrait Studio Session",
  "total_price_cents": 15000,
  "deposit_cents": 3000,
  "discount_cents": 0,
  "balance_due_cents": 12000,
  "deposit_status": "paid",
  "balance_status": "unpaid",
  "deposit_checkout_id": "cs_live_a1B2c3D4",
  "balance_checkout_id": null
}
```

### Two clean ways to collect the remaining balance

- **On-site collection (studios & salons).** Display `Balance due: $120.00` directly on the staff check-in roster. When the client pays in person via card reader or cash, staff clicks **Mark balance paid** (`balance_status = 'paid'`, recording method and staff user ID).
- **Automated balance-due checkout link.** Run an hourly scheduled check 48 hours before confirmed appointments where `balance_status = 'unpaid'`. Generate a dedicated Stripe Checkout link for `balance_due_cents` and email it via [Transactional email flows](https://exaspark.ai/docs/transactional-email-flows/). When `checkout.session.completed` returns with `metadata.payment_stage === 'balance'`, flip `balance_status = 'paid'` cleanly.

## Bundle discounts and minimum-order perks

Storefronts and session-pack studios frequently increase average order value with straightforward rules such as **"Buy 3 coffee bags, save 15%"**, **"Free shipping on orders $60+"**, or **"5-Class Studio Pack for $95 instead of $125."**

Always compute bundle eligibility and shipping thresholds **exclusively on the server** from authoritative database prices right before building your Stripe Checkout Session. For fixed multi-session packs, model the bundle as its own SKU or credit pack (`class_credits += 5` on `checkout.session.completed`) so accounting and refunds stay transparent.

1. **Define exact business rules up front** — Write down discount percentages, expiration dates, single-use trial rules, deposit amounts, and cancellation/refund cutoffs before generating Checkout logic.
2. **Create Stripe Coupons or deposit metadata** — Configure launch Promotion Codes inside Stripe Dashboard (both Test and Live when launching) and tag Checkout metadata with `payment_stage` (`deposit`, `balance`, or `order`).
3. **Handle `$0` trial checkouts in webhooks** — Confirm your webhook checks `subscription.status IN ('trialing', 'active')` rather than rejecting `$0` initial Checkout totals as unpaid.
4. **Test edge cases in Preview Test mode** — Redeem a valid promo code, test an expired code, complete a 7-day trial, verify a second checkout omits the trial, and verify a `$30` deposit leaves `$120` in `balance_due_cents`.
5. **Recreate Live promo codes before Publish** — Stripe Test coupons do not automatically copy to Live mode; recreate your active launch Promotion Codes inside Stripe Live Dashboard before announcing your offer.

> **Example prompt (App):** Enhance our Stripe checkout and booking system with three conversion flows: (1) Enable `allow_promotion_codes: true` on all Checkout Sessions and save `discount_cents` and `total_cents` from verified webhooks; (2) Add a single-use 14-day free trial on Pro subscriptions guarded by `users.has_used_trial = true` so returning subscribers cannot claim a second trial, and handle `customer.subscription.trial_will_end` to send a branded 3-day reminder email with amount, charge date, and Customer Portal link; (3) For studio bookings, split `total_price_cents` into an upfront `$30` deposit (`payment_stage: 'deposit'`) and `balance_due_cents`, and add an admin button plus automated 48-hour email sending a Stripe Checkout link for the remaining balance (`payment_stage: 'balance'`).

## Troubleshooting promo codes, trials, and deposit math

| Symptom | Most likely root cause | Reliable fix |
| --- | --- | --- |
| **No promo box on Checkout** | `allow_promotion_codes: true` omitted on server session | Add `allow_promotion_codes: true` to Checkout Session creation |
| **Trial user stays on Free** | Webhook rejected `$0` initial Checkout total | Grant paid tier whenever `status IN ('trialing', 'active')` |
| **Unlimited free trials claimed** | Checkout always passed `trial_period_days` | Track `users.has_used_trial = true` and omit trial on re-subscribe |
| **Revenue double-counts deposits** | Chart summed `total_price_cents` instead of collected cash | Sum strictly paid deposit and paid balance events |
| **Bundle totals off by `$0.01`** | Floating-point dollar math (`19.99 * 0.85`) | Compute and store all amounts as integer cents |
| **Code fails after Publish** | Promo code created only in Stripe Test Dashboard | Recreate matching Coupon and Promotion Code in Stripe Live |

## Next steps

- [Subscriptions & proration](https://exaspark.ai/docs/subscriptions-and-upgrades/) — Handle upgrades, downgrades, proration, and failed renewals cleanly.
- [Refunds, disputes & tax](https://exaspark.ai/docs/refunds-disputes-and-taxes/) — Reconcile partial refunds, Stripe Tax, and chargeback protection.
- [Playbook: Bookings & shops](https://exaspark.ai/docs/playbook-bookings-stores/) — Complete schemas, slot holds, and stock locks for local businesses.

## From the blog

- [How do apps make money?](https://exaspark.ai/blog/how-do-apps-make-money/) — Match pricing structures, deposits, and trials to your audience.
- [How to build a booking app](https://exaspark.ai/blog/how-to-build-a-booking-app/) — Reduce no-shows with deposits, reminders, and rescheduling windows.
- [How to get your first users](https://exaspark.ai/blog/how-to-get-your-first-users/) — Use launch promo codes and low-friction trials to convert early visitors.
