# Cancel at the end of the period

Stops the subscription renewing and answers the status and the date it ends. Nothing is cancelled immediately and the plan does not change: the workspace paid for this period and keeps every entitlement until it runs out. Needs the workspace's owner or admin seat.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/billing/cancel`

## Request body

Content type: `application/json`.

```json
{
  "body": {},
  "params": {},
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
