---
title: "Cancel at cycle end (entitlement survives until period end)"
method: POST
path: "/v1/subscriptions/{id}/cancel"
---

# Cancel at cycle end (entitlement survives until period end)

`POST /v1/subscriptions/{id}/cancel`

## Request

- Base URL: `https://api.hify.club`
- URL: `https://api.hify.club/v1/subscriptions/{id}/cancel`
- Auth: API key in header `X-User-Token`

## Path parameters

- `id` integer, required

## Response `200`

Updated subscription

- Subscription, nullable
  - `id` integer
  - `status` 'created' | 'authenticated' | 'active' | 'past_due' | 'halted' | 'cancelled' | 'completed'
  - `pg` string
  - `current_period_start` string, date-time, nullable
  - `current_period_end` string, date-time, nullable
  - `cancel_at_period_end` boolean
  - `payment_method_summary` object

---

[API](https://skmtc.dev/hify/apis/hify-apis.md) - [All operations](https://skmtc.dev/hify/apis/hify-apis/llms.txt) - [OpenAPI document](https://skmtc.dev/hify/apis/hify-apis/revisions/b5920403538d?raw)
