---
title: "Subscription"
method: DELETE
path: "/workspaces/{workspace_id}/subscription/{subscription_id}"
tags: ["subscription"]
---

# Subscription

`DELETE /workspaces/{workspace_id}/subscription/{subscription_id}`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/workspaces/{workspace_id}/subscription/{subscription_id}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/workspaces/:workspace_id/subscription/:subscription_id/delete.ts> (a function with typed inputs; its response is checked against the schema)

Cancels the subscription and saves feedback if present.

## Path parameters

- `workspace_id` integer, required
- `subscription_id` integer, required

## Request body

- ModelsPlanChangeFeedback
  - `comment` string
  - `master_signup` boolean
  - `selections` object[]

## Response `200`

No data returned.

- string

## Other responses

- `400`: Possible error messages: * user\_count must be greater than 0 * pricing\_plan\_id is not valid * period can be 1 or 12 * workspace has no subscription * workspace has no customer
- `403`: Admin permissions required.
- `500`: Internal Server Error

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
