Access
PreviewThe organization's closing
The closing the organization is under, or the last one that was cancelled. 404 for an organization that was never closed.
GET
cookie
better-auth.session_token<token>Better Auth session cookie. Production uses the __Secure- prefixed name.
The closing.
application/json- response
closedAt*stringFormat
date-timedeleteAt*stringWhen the organization's data is deleted if the closing is not cancelled first.
Format
date-timecancelledAt?stringFormat
date-timestate*OrganizationClosureStateValue in
"closing""cancelled""deleted"curl -X GET 'https://wardn.example.com/api/v1/organization/closure'Example Response
{ "closedAt": "2019-08-24T14:15:22Z", "deleteAt": "2019-08-24T14:15:22Z", "cancelledAt": "2019-08-24T14:15:22Z", "state": "closing"}Close the organization POST
Closes the organization now and deletes it after thirty days unless the closing is cancelled. The Owner confirms by
Cancel the closing of the organization POST
Lifts the restriction and keeps the organization. Allowed only before its data is deleted: once the thirty days are