# Preview athlete retirement `GET /api/v1/athletes/{id}/retirement-preview` Estimates the effect of terminating the athlete’s current or future subscriptions. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Athletes → 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 athlete. ## 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/athletes/${ID:?Set ID}/retirement-preview" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" ``` ## Response **200 OK** Returns the number of terminable subscriptions and the outstanding amount in minor units. Example with fictional data and selected fields. ```json { "status": "success", "data": { "subscriptions_count": 2, "residual_amount": 5000 } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found.