---
title: "Cancel Subscription"
method: DELETE
path: "/api/v1/billing/subscription"
tags: ["billing"]
---

# Cancel Subscription

`DELETE /api/v1/billing/subscription`

## Request

- Base URL: `https://api.gnosari.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gnosari.com/api/v1/billing/subscription`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-AUTH-TOKEN`

Cancel subscription.

## Request body

- CancelSubscriptionRequest: Request schema for canceling subscription.
  - `cancel_at_period_end` boolean: If true, subscription ends at period end. If false, cancels immediately
  - `feedback` string, nullable: Cancellation feedback

## Response `200`

Successful Response

- CancelSubscriptionResponse: Response schema for subscription cancellation.
  - `status` 'active' | 'trialing' | 'past_due' | 'canceled' | 'incomplete' | 'incomplete_expired', required: Subscription status enum matching Stripe subscription statuses.
  - `cancel_at_period_end` boolean, required
  - `current_period_end` string, date-time, required
  - `message` string, required

## Other responses

- `422`: Validation Error

---

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