查询IP云用户订单状态

本页目录

https://www.cloudam.cn/ip/getorder

请求方式:GET

查询IP云用户订单状态

URL Parameters

ParameterTypeDescription
ACCOUNT_IDString您的Cloudam账户ID, Cloudam会随Token一起提前发送给客户
Example: QQwwEErr!1234

Request(请求)

Headers(HTTP头) 注: 请首先联系Cloudam获取API Token,token相当于密码,请妥善保护。

{
"Authorization": "Bearer ${token}",
"Content-Type": "application/json"
}

Response(响应) - 200

Headers(响应头)

{
"Content-Type": "application/json"
}

Body(响应体JSON) -- 正确响应

{
"userOrderList": [
{
"productId": "5deb839******567ca9a6b",
"money": 1700.0,
"createTime": "2020-03-10 10:07:43",
"orderId": "toOuLxW*******mVPHnncBIQPONfnvQ3",
"chargeType": "fixedIp",
"total": 100,
"remainAmount": 0,
"expirationTime": "2020-04-10 10:12:16",
"overTime": false
}
],
"status": "success"
}

Response Body Attributes(响应Body属性)

AttributeTypeDescription
userOrderListArray用户订单列表
statusString返回结果是否成功success:成功,fail:失败
productIdString商品id
moneyFloat金额,Example:1700.0
createTimeString创建订单时间
Example:2020-03-10 10:07:43
orderIdString订单id
Example:toOuLxW***mVPHnncBIQPONfnvQ3
chargeTypeString购买类型。fixedIp:长效固定IP,durationIp:短效按时长计费IP,quantityIp:短效按提取次数计费IP
totalInteger订单包含的ip总数
remainAmountInteger剩余可提取的ip数量
expirationTimeString订单过期时间
Example:2020-04-10 10:07:43
overTimeBoolean是否过期
Example:true:已过期,false:未过期