# v449 - Verified Webhook Subscription-Sync Test Mutation Reviewed v448.1 controlled checkout URL return build fix and proceeded with verified webhook subscription-sync test mutation before changing payment collection, trial-to-paid conversion, hard billing gates, broker distribution limits, owned portal rules, or internal load-board access. ## What changed - Added a guarded v449 provider-sync test mutation path to `/api/subscriptions/stripe-webhook`. - Added the new environment flag `DISPATCH_SPOT_STRIPE_WEBHOOK_TEST_SYNC_MUTATION_ENABLED="false"`. - Verified Stripe test webhook mutation requires all of the following: - `DISPATCH_SPOT_STRIPE_WEBHOOK_EVENT_INTAKE_ENABLED="true"` - `DISPATCH_SPOT_STRIPE_WEBHOOK_SUBSCRIPTION_SYNC_ENABLED="true"` - `DISPATCH_SPOT_STRIPE_WEBHOOK_TEST_SYNC_MUTATION_ENABLED="true"` - Stripe secret key is test mode - `STRIPE_WEBHOOK_SECRET` is configured - event signature verifies successfully - event is not live mode - event matches a saved workspace subscription by Stripe customer or subscription ID - payment collection, customer portal activation, hard billing gates, and trial-to-paid conversion remain off - The test mutation updates provider sync fields only: - billing provider: Stripe - billing mode: Test - provider sync status: Synced - provider billing status - saved Stripe customer/subscription/subscription item IDs when present - current period end when present - last provider sync timestamp - The test mutation does not change WorkspaceSubscription `status`, does not convert trials to paid, and does not change user access. - Added duplicate-event protection so the same verified Stripe event ID is not applied twice. - Added Super Admin audit event `STRIPE_SUBSCRIPTION_SYNC_TEST_MUTATION_APPLIED`. - Updated the Stripe webhook review dashboard and subscription sync readiness panel with verified test mutation counts, duplicate ignored counts, mutation scope, environment posture, CSV export fields, and safety copy. - Updated billing activation master checklist evidence to recognize controlled provider-sync test mutation without treating it as payment collection or hard-gate activation. ## What's visible ### In Super Admin At `/admin/subscriptions`, Super Admin sees stronger Stripe webhook and subscription sync review context. The webhook review dashboard and subscription sync readiness panel now show verified test mutation readiness, applied mutation evidence, duplicate ignored events, mutation scope, and unchanged access guardrails. ### In Workspace Admin No Workspace Admin workflow changed. ### In Dispatch Workspace No dispatch workflow is blocked. ### In Driver, Broker, Company/Fleet, and Carrier Workspaces No workflow or access rule changed. ## Guardrails - Payment collection remains off. - Trial-to-paid conversion remains off. - Workspace subscription status mutation remains off. - Customer portal activation remains off. - Hard billing gates remain off. - Broker distribution limits remain unchanged. - Owned portal rules remain unchanged. - Internal load-board access remains unchanged. - Prisma schema impact: none.