跳转到主要内容
POST
/
api
/
v1
/
bandwidth
/
rentals
/
{rental_id}
/
cancel
取消自动续费租赁
curl --request POST \
  --url https://api.example.com/api/v1/bandwidth/rentals/{rental_id}/cancel
{
  "id": 123,
  "status": "<string>",
  "undelegate_txid": "<string>"
}

取消自动续费租赁

立即停止扣费并取消委托带宽。

路径参数

rental_id
number
必填
租赁 id —— 由“启动自动续费租赁”返回的 id

响应

id
number
唯一租赁标识符
status
string
租赁状态 —— 成功时为 cancelled
undelegate_txid
string
链上取消委托交易 id

示例

curl -X POST https://api.tronrental.com/v1/bandwidth/rentals/4321/cancel \
  -H "X-API-Key: your_api_key"
Response
{
  "id": 4321,
  "status": "cancelled",
  "undelegate_txid": "def456..."
}