# v433 - Stripe Subscription Sync and Trial-to-Paid Readiness Bundle

## Decision

Proceed with the Stripe subscription sync and trial-to-paid readiness bundle before changing payment collection, customer portal sessions, hard billing gates, broker distribution limits, owned portal rules, or internal load-board access.

## What changed

- Added Super Admin-only API route:
  - `/api/admin/stripe-subscription-sync/readiness`
- Added `StripeSubscriptionSyncReadinessService`.
- Extended `/admin/subscriptions` with a new **Subscription sync and trial-to-paid readiness** section.
- Added review-only visibility for:
  - saved Stripe customer/subscription mapping;
  - duplicate Stripe customer/subscription ID warnings;
  - provider sync readiness;
  - recent webhook event sync previews;
  - trial end date readiness;
  - trial ending soon and expired trial counts;
  - checkout approval and URL-readiness context.
- Added filters and CSV exports for:
  - Stripe ID mapping readiness;
  - trial-to-paid readiness;
  - webhook subscription sync preview.
- Added `.env.example` flags:
  - `DISPATCH_SPOT_STRIPE_SUBSCRIPTION_SYNC_REVIEW_ONLY="true"`
  - `DISPATCH_SPOT_STRIPE_TRIAL_TO_PAID_CONVERSION_REVIEW_ONLY="true"`

## What remains locked

- Webhook-driven subscription status mutation.
- Trial-to-paid conversion.
- Checkout URL return.
- Payment collection.
- Customer portal sessions.
- Hard billing gates.
- Broker distribution limits.
- Owned portal rules.
- Internal load-board access.

## Prisma schema impact

None.
