VPS订单列表查询

本接口用于查询VPS订单列表信息

接口信息

POST /client/order/vpsOrderList

请求头

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

请求参数

参数名必选类型说明
orderNoString订单号

请求示例

const response = await fetch('/client/order/vpsOrderList', {
  method: 'POST',
  headers: {
    'Content-Type': 'application/json',
    'x-merchant-token': 'your-token-here',
    'x-merchant-code': 'your-merchant-code'
  },
  body: JSON.stringify({
      "orderNo":"N2025032701271232584"
  })
});

响应结果

{
  "msg": "操作成功",
  "code": 200,
  "data": {
    "orderNo": "N2025032701271232584",
    "quantity": 1,
    "totalAmount": 30.000,
    "currency": "USD",
    "paidStatus": 10,
    "payMethod": null,
    "effectiveDatetime": "2025-03-27",
    "expireDatetime": "2025-05-27",
    "orderItems": [
      {
        "orderNo": "N2025032701271232584",
        "hostIp": "192.168.2.7",
        "containerId": "c6512562422d",
        "clusterId": 6,
        "hostTemplateId": "povcUS2qr2oHgaz",
        "activationDurationType": "2",
        "continent": "Asia",
        "countryCode": "TH",
        "city": "Bangkok",
        "effectiveDatetime": "2025-03-27",
        "expireDatetime": "2025-05-27",
        "model": "TH.Test2",
        "cpuCores": 2,
        "cpuModel": "Xeon E5",
        "memory": 2,
        "diskCapacity": 1000,
        "diskModel": "Kingston",
        "ioWrite": 100,
        "ioRead": 200,
        "bandwidth": 1000,
        "internetTraffic": 1000,
        "ipV4": "BGP",
        "ipV6": "Y"
      }
    ]
  }
}

响应参数说明

参数名类型说明
orderNoString订单号
quantityInteger购买sh匀
totalAmountDouble购买金额
currencyString货币单位(当前仅支持USD)
paidStatusInteger支付状态(0-已取消,10-新订单-未支付,20-已支付)
payMethodString支付方式(当前仅支持BALANCE)
effectiveDatetimeString生效时间
expireDatetimeString过期时间
orderItemsArray[OrderItemVO]

OrderItemVO结构

参数名类型说明
orderNoString订单号
hostIpStringVPS IP
containerIdString容器ID
clusterIdInteger集群ID
hostTemplateIdString配置模板ID
activationDurationTypeString购买方式
continentString地区
countryCodeString国家编号
cityString城市
effectiveDatetimeString生效时间
expireDatetimeString过期时间
modelString型号
cpuCoresInteger核心数
cpuModelStringcpu型号
memoryInteger内存大小
diskCapacityInteger硬盘容量
diskModelString硬盘型号
ioWriteInteger写速度
ioReadInteger读速度
bandwidthInteger带宽
internetTrafficInteger流量
ip_v4Stringip_v4
ip_v6Integeripv6(Y-支持,N-不支持)
bandwidthInteger带宽