Skip to main content

OrgRetirementType

A record of one organization retirement. Retirement is a STATE, not a deletion: every ledger row the organization ever wrote is still present and still references it, so what the org spent stays reconstructable with the same joins as before. This row says who retired it, why, and what it was holding at the time.

type OrgRetirementType {
retirementId: BigInt!
orgId: BigInt!
orgSlug: String!
orgName: String!
reason: String!
retiredByUserId: BigInt!
retiredAt: DateTime!
balanceCentsAtRetirement: BigInt!
walletTxnCountAtRetirement: BigInt!
appsArchived: Int!
frozenBalanceAcknowledged: Boolean!
reinstatedAt: DateTime
reinstatedByUserId: BigInt
reinstatedReason: String
}

Fields

OrgRetirementType.retirementId ● BigInt! non-null scalar

Retirement record id (BigInt as a decimal string).

OrgRetirementType.orgId ● BigInt! non-null scalar

The retired organization (BigInt as a decimal string).

OrgRetirementType.orgSlug ● String! non-null scalar

The organization slug as it stood when it was retired.

OrgRetirementType.orgName ● String! non-null scalar

The organization name.

OrgRetirementType.reason ● String! non-null scalar

Why the organization was retired.

OrgRetirementType.retiredByUserId ● BigInt! non-null scalar

Operator user_id who retired it.

OrgRetirementType.retiredAt ● DateTime! non-null scalar

When it was retired.

OrgRetirementType.balanceCentsAtRetirement ● BigInt! non-null scalar

Wallet balance in cents at the moment of retirement. This money is FROZEN indefinitely, not refunded and not forfeited — the operator decided that on 2026-08-21. It is recorded here rather than only in the wallet so that every organization holding frozen money is enumerable from one table if the policy is ever revisited.

OrgRetirementType.walletTxnCountAtRetirement ● BigInt! non-null scalar

How many org wallet_transactions rows existed at retirement. All of them are still there — this number is the claim that the ledger survived, stated at the moment it would have been easiest to lose.

OrgRetirementType.appsArchived ● Int! non-null scalar

How many of the org apps were archived by the retirement. Apps already archived are not counted and are not touched.

OrgRetirementType.frozenBalanceAcknowledged ● Boolean! non-null scalar

True when the caller had to pass acknowledgeFrozenBalance because the org held money, which is frozen indefinitely rather than refunded or forfeited.

OrgRetirementType.reinstatedAt ● DateTime scalar

When the retirement was reversed, or null while it is in force.

OrgRetirementType.reinstatedByUserId ● BigInt scalar

Operator user_id who reinstated the organization.

OrgRetirementType.reinstatedReason ● String scalar

Why the organization was reinstated.

Returned By

reinstateOrganization mutation ● retiredOrganizations query ● retireOrganization mutation