退订 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 | 是 | String | IP 所属国家二字码 |
请求示例
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。