Aller au contenu principal

Tenant lifecycle, plans and billing

Managed in ImpartLab.Manager by platform operators.

Tenant statuses​

StatusEffect
ActiveFull access; API requests accepted
InactiveAPI access blocked for all users
TrialActive with a time-limited trial subscription

Activate or deactivate a tenant​

  • Activate: POST /api/tenants/activate or Manager → Tenants → Activate
  • Deactivate: POST /api/tenants/disable or Manager → Tenants → Deactivate
  • Bulk activate: POST /api/tenants/bulk/activate

See DEPLOYMENT.md in the repository root before upgrading an existing environment.

Subscription plans​

  1. Go to Manager → Subscription plans and select New plan.
  2. Set the name, price, billing interval and feature limits.
  3. Assign the plan to a tenant under Manager → Tenants → [Tenant] → Subscription.

Subscription expiry​

The expiry service runs every SUBSCRIPTION_CHECK_INTERVAL_HOURS hours (default 24). When a subscription expires, the tenant's API access is blocked. A notification is sent to the tenant's admin email, or to BILLING_NOTIFICATION_EMAIL if no admin email is set.