Tutorial
Dedicated Lifecycle Operations
Handle Stripe events, monitor grace mode, and run export/decommission safely.
1
Verify webhook delivery and status updates
Ensure dedicated billing webhook events are arriving and being processed. Core events include checkout.session.completed, invoice.payment_failed, and customer.subscription.deleted.

2
Observe grace mode behavior
When payment fails, dedicated clusters can enter grace state. Writes are blocked and API responses include grace metadata so client UX can warn operators.

HTTP 402
{
"error": "cluster_in_grace_mode",
"grace_expires_at": "2026-07-10T00:00:00Z"
}3
Execute export and decommission runbook
If lifecycle ends, export customer data and decommission infrastructure with controlled scripts. Keep audit logs and confirmation records with the offboarding ticket.

./deploy-dedicated.ps1 -CompanySlug acme -AdminEmail admin@acme.com
./teardown-dedicated.ps1 -CompanySlug acme -ExportDatabaseTip:Treat grace mode as a short remediation window, not a steady state. Alert account owners early and automate escalation before the grace deadline.