Manage a subscription by changing its lifecycle action.
-H "x-api-key: your_secret_key"
PATCH {{host}}/v1/subscriptions/{id}/manage
| Field | Data Type | Required | Description |
|---|
| id | string | Yes | Subscription ID or code. |
| Field | Data Type | Required | Description |
|---|
| action | string | Yes | cancel, activate, or cancel_at_period_end. |
{
"action": "cancel_at_period_end"
}
{
"status": true,
"message": "Success",
"code": 200,
"data": {
"id": "93ad2450-b49f-4c3f-a871-52a5455bdf62",
"code": "SUB_abc123",
"status": "NON_RENEWING"
}
}