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.

Stripe webhook timeline with dedicated subscription events
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.

API response showing grace mode payload
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.

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