首页 / 帮助文档 / 开发者文档 / 7.2. 退订 IP

退订 IP

批量退订轻量服务器的 IP,支持指定退订日期。

接口信息

POST /api/iplt/client/ip/server/unsubscribeIp

认证方式:API Key(x-merchant-code + x-merchant-token)

请求头

参数名必选类型说明
x-merchant-token是String商户令牌(API Key 的 token 部分)
x-merchant-code是String商户代码(API Key 的 code 部分)
Content-Type否String固定 application/json(POST/PUT 必填)

请求参数(Body)

参数名必选类型说明
unsubscribeData是Array退订明细列表,见下表
unsubscribeDate否String退订日期 YYYY-MM-DD,默认当日

unsubscribeData 元素结构

参数名必选类型说明
ip是String要退订的 IP
countryCode是StringIP 所属国家二字码

请求示例

curl -s -X POST 'https://www.iplight.net/api/iplt/client/ip/server/unsubscribeIp' \
  -H 'Content-Type: application/json' \
  -H 'x-merchant-code: YOUR_CODE' \
  -H 'x-merchant-token: YOUR_TOKEN' \
  -d '{
    "unsubscribeData": [
      { "ip": "38.213.215.254", "countryCode": "US" }
    ],
    "unsubscribeDate": "2025-11-18"
  }'

响应示例

{ "msg": "操作成功", "code": 200, "data": "true" }

常见失败

{
  "msg": "退订失败:退订IP中包含主机IP(103.102.126.10),主机IP不允许退订",
  "code": 3000
}

主机 IP 不可退订。请只传可退订的实例 IP。

技术支持 support@iplight.net · 返回官网 · 使用教程