Access
Preview

The 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
/organization/closure
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

Response Body

The closing.

application/json
  1. response
closedAt*string
Formatdate-time
deleteAt*string

When the organization's data is deleted if the closing is not cancelled first.

Formatdate-time
cancelledAt?string
Formatdate-time
state*OrganizationClosureState
Value in"closing""cancelled""deleted"
Example Request
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"}