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

# Cancel Plan

> Submits a cancellation request for an active plan.

# Cancel Plan

Submits a cancellation request for the authenticated customer's active plan. Depending on operator configuration, cancellation may take effect immediately or at the end of the current billing period.

## Authentication

Requires a valid customer bearer token.

## Request Body

The request body contains the contract/plan details for the cancellation.

<ParamField body="ContractId" type="number" required>
  The integer ID of the contract to cancel.
</ParamField>

## Response

Returns a `200 OK` on success.

## Examples

### Cancel a plan

```http theme={null}
POST /api/public/plans/cancel
Authorization: Bearer {token}
Content-Type: application/json

{
  "ContractId": 789
}
```

```
HTTP/1.1 200 OK
```

## TypeScript Integration

```typescript theme={null}
import endpoints from '@/api/endpoints'

await httpClient.post(endpoints.plans.cancel, { ContractId: 789 })
```
