> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bunship.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancel Subscription

> Cancel the subscription at the end of the current billing period

Cancels the organization's subscription. The subscription remains active until the end of the current billing period, then downgrades to the free plan.

## Auth

<Note>Requires a valid Bearer token. User must be a member of the organization.</Note>

## Path Parameters

<ParamField path="orgId" type="string" required>
  Organization identifier.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Always `true` on success.
</ResponseField>

<ResponseField name="data" type="object">
  <Expandable title="data properties">
    <ResponseField name="success" type="boolean">
      Cancellation confirmation.
    </ResponseField>

    <ResponseField name="cancelAt" type="string">
      ISO 8601 timestamp of when the subscription ends.
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "success": true,
    "data": {
      "success": true,
      "cancelAt": "2024-02-15T10:00:00Z"
    }
  }
  ```
</ResponseExample>

## Example

```bash theme={null}
curl -X POST https://api.bunship.com/api/v1/organizations/org_cld2abc123def456/billing/cancel \
  -H "Authorization: Bearer eyJhbGciOiJIUzI1NiIs..."
```
