本接口用于新购下单
POST /client/order/addStatic
| 参数名 | 必选 | 类型 | 说明 |
| x-merchant-token | 是 | string | 商户访问令牌 |
| x-merchant-code | 是 | string | 商户编码 |
| 参数名 | 必选 | 类型 | 说明 |
| countryNums | 是 | Array of CountryNumsItemVO | 国家IP数量分配列表 |
| monthCount | 是 | Long | 购买几个月 |
| currency | 是 | String | 货币类型USD |
| 参数名 | 必选 | 类型 | 说明 |
| countryCode | 是 | String | 国家代码 |
| location | 是 | String | 省/州/区 |
| num | 是 | Long | 该国家需要的IP数量 |
| ipType | 是 | Long | 0:广播 1:原生 |
const response = await fetch('/client/order/addStatic', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'x-merchant-token': 'your-token-here',
'x-merchant-code': 'your-merchant-code'
},
body: JSON.stringify({
"countryNums": [
{
"countryCode": "US",
"num": "2",
"ipType":1
}
],
"monthCount":1,
"currency":"USD"
})
});
const result = await response.json();
{
"msg": "操作成功",
"code": 200,
"data": "N2025032701271232584"
}