---
title: "Cancel Subscription"
method: POST
path: "/billing/team/{team_id}/cancel-subscription"
tags: ["billing"]
---

# Cancel Subscription

`POST /billing/team/{team_id}/cancel-subscription`

Cancel the team's subscription with a usage-netted pro-rated refund.

The single in-app cancellation entry point. Eligible teams (the
grandfathered ``legacy`` cohort, once per card fingerprint) receive a
pro-rated refund of unused subscription time minus the value of inference
consumed this period. The subscription is cancelled immediately and the
team is downgraded to ``free``.

Requires: MANAGE_BILLING permission (owner, admin, or billing role).

## Path parameters

- `team_id` string, required

## Response `200`

Successful Response

- CancelSubscriptionResponse — Result of cancelling a team subscription with an optional refund.
  - `success` boolean, required
  - `message` string, required
  - `refunded_cents` integer

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/revisions/31dfe831e079/schema)
