---
title: "Cancel active subscription"
method: POST
path: "/api/v1/wallet/subscription/cancel"
tags: ["Wallet"]
---

# Cancel active subscription

`POST /api/v1/wallet/subscription/cancel`

## Request

- Base URL: `https://backend.caspr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://backend.caspr.ai/api/v1/wallet/subscription/cancel`
- Auth: OAuth 2
  - Password
  - Token URL: `token`

Cancel the user's active subscription at the end of the current billing cycle. User keeps access until cycle ends.

## Request body

- CancelSubscriptionRequest: Request to cancel a subscription.
  - `reason` string, nullable: Optional reason for cancellation

## Response `200`

Successful Response

- CancelSubscriptionResponse: Response for subscription cancellation.
  - `success` boolean, required
  - `message` string, required
  - `data` object, nullable
  - `error` string, nullable

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `422`: Validation Error
- `500`: Internal Server Error

---

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