Check whether the organization can be closed
/v1/organizations/{organization}/closure-eligibilityCheck whether the organization can be closed.
Reports whether DELETE /v1/organizations/{organization} would be allowed now, and if not, why. Closing is blocked while the organization's credit account holds a positive balance (ORG_HAS_CREDIT_BALANCE) or while a credit withdrawal is still being refunded (WITHDRAWAL_IN_PROGRESS). An organization with no credit account is closeable, with a balance of 0.
Requires a member of the organization (any role), or an organization-scoped va_ key with the admin or member role. A workspace-scoped key is refused with 403.
Authorization
AuthorizationBearer va_A platform API key (
va_...), created under Settings > API keys. Scoped to an organization or one workspace, with an admin or member role. Used by the management API.
Path parameters
organizationstringrequiredthe organization's slug
Responses
closeablebooleanTrue when closing the organization would be allowed now.
blocking_reasonstringWhy it cannot be closed:
ORG_HAS_CREDIT_BALANCE(withdraw or spend the credit balance first) orWITHDRAWAL_IN_PROGRESS(a credit withdrawal is still being refunded). Absent whencloseableis true.credit_balance_usdnumber<double>The organization's credit balance, in USD; 0 when it has no credit account.