Skip to main content

DeactivateUserDto

cancelSubscriptionsboolean

When true, also schedules all active subscriptions for cancel at period end. Billing keeps flowing on Stripe until then.

Default value: false
expiresInSecondsnumber

Optional expiry — seconds from now. When omitted the ban is indefinite (user.banExpires=null).

reasonstring

Reason for deactivation. Stored on the user row and surfaced in audit.

DeactivateUserDto
{
"cancelSubscriptions": false,
"expiresInSeconds": 0,
"reason": "string"
}