跳到主要内容

获取云存储套餐的订单详情

更新时间:2025-03-18 10:42:11

调用该接口获取云存储套餐的订单详情。


描述
路径/platform/customer/cloudstorage/order/get
版本号1.0.0
协议HTTPS
请求方法POST

请求参数:

公共请求参数见 公共请求参数

请求字段类型必选描述
iotIdString平台为设备颁发的ID,设备的唯一标识符。
orderIdString业务参数。

返回参数:

返回字段类型描述
idString用于识别请求记录,即对应的请求ID。
codeInt接口返回码字段,请求成功时返回200;请求失败时返回详细的错误码。
messageString调用失败时,返回的出错信息
dataObject响应的结果。
iotIdString平台为设备颁发的ID,设备的唯一标识符。
userNameString购买云存储套餐的用户名。
specificationString云存储套餐规格。
copiesInt购买的数量。
priceString云存储套餐价格,单位:元。
orderIdString购买云存储套餐的订单ID。
outOrderNoString外部支付结算订单号。
statusInt云存储套餐订单的状态。0(订单有效,使用中);1(订单无效,已过期);
2(订单冻结停用);3(创建中,未支付开通)。
paymentStatusInt云存储订单支付状态。0(未支付);1(已支付);2(正在支付中)。
recordTypeInt云存录像类型。1(表示连续型);2(表示事件型)。
startTimeLong云存储套餐开始时间,UTC时间戳,单位毫秒。
endTimeLong云存储套餐结束时间,UTC时间戳,单位毫秒。

请求示例:

x-ca-key: xxxxxxxx
x-ca-timestamp: 1728634151000
x-ca-nonce: 7b25fc15b9434dd98587a077a92b7e42
x-ca-signature: yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy
Content-Type: application/json;charset=UTF-8

{
"id": "49a7be925e53******8ba0facf7",
"version": "1.0",
"request": {
"apiVer": "1.0.0"
},
"params": {
"iotId": "6vw0OrGyHFSW6EQA*****",
"orderId": "20190****7292734"
}
}

成功返回示例:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Cache-Control: no-store
Pragma: no-cache

{
"id": "49a7be925e5347de8b5e9b08ba0facf7",
"code": 200,
"message": "success",
"data": {
"iotId": "6vw0OrGyHFSW6EQA*****",
"userName": "1376981****",
"specification": "event_7",
"copies": 1,
"price": "1.0",
"orderId": "20190****7292734",
"status": 0,
"paymentStatus": 1,
"recordType": 2,
"startTime": 1728636486000,
"endTime": 1729241318000
}
}