---
title: "Cancel a subscription"
method: PUT
path: "/subscription/cancel"
---

# Cancel a subscription

`PUT /subscription/cancel`

Cancel an active subscription in the payment system.

## Request body

- object
  - `pay_system_id` string — ID of the subscription in external Stripe/Paddle/PayPal, e.g. sub_1PzNJzCsRq5tBi2bbfNsAf86or I-H7HC902MYM49
  - `comment` string — Optional comment for the cancellation.
  - `cancel_at_period_end` boolean — If true, the subscription will be canceled at the end of the current billing period. If false or not provided, the subscription will be canceled immediately.

## Response `200`

Subscription canceled successfully.

- object
  - `success` boolean

## Other responses

- `400` — Invalid request or missing parameters.

---

[API](https://skmtc.net/web2wave/apis/web2wave-api.md) · [All operations](https://skmtc.net/web2wave/apis/web2wave-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/web2wave/web2wave-api/versions/c88545119271/schema)
