# Count linked subscriptions `GET /api/v1/plans/{id}/subscription-impact` Counts subscriptions linked to a plan before a change. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Plans → Write**. ## Headers - `X-Sport-Id` (integer, required) — The sport ID from [List sports](/api/sports/list.md). Use the sport the record belongs to. ## Path parameters - `id` (integer, required) — ID of the plan. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request GET \ --url "https://api.asdincloud.com/api/v1/plans/${ID:?Set ID}/subscription-impact" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" ``` ## Response **200 OK** Returns the plan ID and count of linked subscriptions. Example with fictional data and selected fields. ```json { "status": "success", "data": { "plan_id": 13, "subscription_count": 4 } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found.