本接口用于退订服务器IP,支持批量IP退订。
POST /client/ip/server/unsubscribeIp
| 参数名 | 必选 | 类型 | 说明 |
| x-merchant-token | 是 | string | 商户访问令牌 |
| x-merchant-code | 是 | string | 商户编码 |
| 参数名 | 必选 | 类型 | 说明 |
| unsubscribeData | 是 | Array[UnsubscribeData] | 退订IP详情列表 |
| unsubscribeDate | 否 | String | 退订日期,格式YYYY-MM-DD 默认当日 |
| 参数名 | 必选 | 类型 | 说明 |
| countryCode | 是 | String | 国家代码 |
| ip | 是 | String | IP |
const response = await fetch('/client/ip/server/unsubscribeIp', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-merchant-token': 'your-token-here',
'x-merchant-code': 'your-merchant-code'
},
body: JSON.stringify({
"unsubscribeData": [
{
"ip": "38.213.215.254",
"countryCode": "US"
},
{
"ip": "163.171.216.31",
"countryCode": "RU"
}
],
"unsubscribeDate": "2025-11-18"
})
});
const result = await response.json();
{
"msg": "操作成功",
"code": 200,
"data": "true"
}
{
"msg": "退订失败:退订IP中包含主机IP(103.102.126.10),主机IP不允许退订",
"code": 3000
}