新购下单

本接口用于新购下单

接口信息

POST /client/order/addStatic

请求头

参数名必选类型说明
x-merchant-tokenstring商户访问令牌
x-merchant-codestring商户编码

请求参数

参数名必选类型说明
countryNumsArray of CountryNumsItemVO国家IP数量分配列表
monthCountLong购买几个月
currencyString货币类型USD

CountryNumsItemVO结构

参数名必选类型说明
countryCodeString国家代码
locationString省/州/区
numLong该国家需要的IP数量
ipTypeLong0:广播 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"
}