# Cancel subscription

```http
POST /accounts/{account_id}/subscription/cancel
```

Schedule the paid subscription of an account to end with its current billing period; returns the canceled subscription. Requires account.billing.manage.

## Parameters

| Name         | In   | Required | Description |
| ------------ | ---- | -------- | ----------- |
| `account_id` | path | Yes      |             |

## Responses

| Status | Description                                                                  |
| ------ | ---------------------------------------------------------------------------- |
| 200    | Subscription canceled. Cancellation downgrades the account to the free tier. |
| 400    | Bad request                                                                  |
| 401    | Unauthorized                                                                 |
| 402    | Payment required                                                             |
| 403    | Forbidden                                                                    |
| 404    | Not found                                                                    |
| 409    | Conflict                                                                     |
| 500    | Server error                                                                 |
| 502    | Billing provider could not verify or cancel the subscription                 |
