> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tronrental.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Отменить аренду с автопродлением

> Отмена бессрочной аренды bandwidth с отзывом делегирования

## Отменить аренду с автопродлением

Останавливает списания и сразу отзывает делегированный bandwidth.

### Параметры пути

<ParamField path="rental_id" type="number" required>
  ID аренды — значение `id` из «Запустить аренду с автопродлением»
</ParamField>

### Ответ

<ResponseField name="id" type="number">
  Уникальный идентификатор аренды
</ResponseField>

<ResponseField name="status" type="string">
  Статус аренды — `cancelled` при успехе
</ResponseField>

<ResponseField name="undelegate_txid" type="string">
  Хеш on-chain транзакции отзыва делегирования
</ResponseField>

### Пример

```bash theme={null}
curl -X POST https://api.tronrental.com/v1/bandwidth/rentals/4321/cancel \
  -H "X-API-Key: your_api_key"
```

```json Response theme={null}
{
  "id": 4321,
  "status": "cancelled",
  "undelegate_txid": "def456..."
}
```
