---
updatedAt: 2026-09-23T02:21:06.000Z
agentTools:
  projectIndex: https://docs.kyshi.co/llms.txt
---

# Manage Subscription

Cancel, activate, or mark a subscription non-renewing.

Manage a subscription by changing its lifecycle action.

```Text Header
-H "x-api-key: your_secret_key"
```

```Text Request
PATCH {{host}}/v1/subscriptions/{id}/manage
```

# Path Parameters

| Field | Data Type | Required | Description              |
| :---- | :-------- | :------- | :----------------------- |
| id    | string    | Yes      | Subscription ID or code. |

# Request Body

| Field  | Data Type | Required | Description                                      |
| :----- | :-------- | :------- | :----------------------------------------------- |
| action | string    | Yes      | `cancel`, `activate`, or `cancel_at_period_end`. |

```json Request
{
  "action": "cancel_at_period_end"
}
```

```json Response
{
  "status": true,
  "message": "Success",
  "code": 200,
  "data": {
    "id": "93ad2450-b49f-4c3f-a871-52a5455bdf62",
    "code": "SUB_abc123",
    "status": "NON_RENEWING"
  }
}
```