---
title: "Stop at the end of the period already paid for"
method: POST
path: "/workspaces/{id}/cancel"
tags: ["billing"]
---

# Stop at the end of the period already paid for

`POST /workspaces/{id}/cancel`

## Request

- Base URL: `https://api.swingfactor.ai/v1`
- URL: `https://api.swingfactor.ai/v1/workspaces/{id}/cancel`
- Auth: HTTP bearer

Nothing changes until then, and nothing is deleted after: what was made stays readable, and buying again picks up where it stopped. The subscription says so from the next webhook on.

## Path parameters

- `id` string, uuid, required

## Response `204`

It will stop at the end of the period.

## Other responses

- `401`: No token, or not a valid one: `unauthorized`.
- `403`: Only the owner manages billing.
- `409`: There is no subscription running to stop.

---

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