接口路径
https://api.unicloud.com/transaction
接口名
OrderDetail
描述
根据查询条件分页获取订单列表信息
请求参数
| 名称 | 类型 | 是否必填 | 说明 |
|---|
| Action | String | 是 | |填写OrderDetail |
| OrderId | Long | 是 | 订单Id |
返回参数
| 名称 | 类型 | 说明 |
|---|
| Order | JsonObejct | 订单详情 |
Order:
| 名称 | 类型 | 说明 |
|---|
| Id | String | 订单Id |
| UserName | String | 用户名 |
| PayType | String | 计费方式 |
| PayTypeName | String | 计费方式中文名 |
| ProductRegionId | String | 区域Id |
| ProductRegionName | String | 区域名称 |
| OrderStatus | String | 订单状态 |
| TotalPrice | BigDecimal | 总价 |
| PaidAmount | BigDecimal | 已支付金额 |
| FinalPrice | BigDecimal | 实际支付金额 |
| OrderCategory | String | 订单类型 |
| ProductCategory | String | 产品类型 |
| ItemCount | Integer | 订单项个数 |
| DueTime | Date | 超时时间 |
| CancelType | String | 作废类型 |
| Note | String | 备注 |
| OrderNo | String | 订单号 |
| PayTime | Date | 支付时间 |
| CreateTime | Date | 订单创建时间 |
| UpdateTime | Date | 订单修改时间 |
| ProductDescription | String | 产品描述 |
| Quantity | Integer | 购买个数 |
| ProductRentCount | Integer | 租期 |
| ChargeType | String | 先后付费方式(计费方式) |
| ProductRentUnit | String | 租赁单位(小时或秒或天) |
请求示例
?Action=OrderDetail&OrderId=1119146845965123584
正常返回示例
{ "Order": { "Id": "1144119593783001088", "ItemCount": 1, "UserName": "haha", "ProductCategory": "DATA_HARD_DISK", "ProductRegionId": "8b128f0c-e9ad-472c-9c20-451b9f310e94", "ProductRegionName": "cloudos-tj", "ProductDescription": "{\"conf\":{\"地域\":\"天津\",\"硬盘规格\":\"高性能HDD云硬盘 50GB\",\"计费模式\":\"按小时实时付费\"}}", "ProductRentCount": 0, "ProductRentUnit": "HOURS", "Items": [
{ "id": 1144119593787195392, "orderId": 1144119593783001088, "orderNo": "P21784954245923", "productId": 7489, "productSku": "UNIS_PC_TJ_A_DATADISK_NORMAL-50GB", "productName": "DATA_HARD_DISK", "productCategory": "DATA_HARD_DISK", "productDescription": "{\"conf\":{\"地域\":\"天津\",\"硬盘规格\":\"高性能HDD云硬盘 50GB\",\"计费模式\":\"按小时实时付费\"}}", "quantity": 1, "totalPrice": 0, "productStartTime": 1561614342000, "productEndTime": 1561614342000, "productRentUnit": "HOURS", "productRentCount": 0, "isParent": true, "instanceId": "35d272a7-4c2b-4079-aa50-45e6f7fa31b6"
}
], "PayType": "CHARGING_HOURS", "OrderStatus": "PAID", "PayTypeName": "按小时实时付费", "TotalPrice": 0, "PaidAmount": 0, "FinalPrice": 0, "OrderCategory": "NEW", "DueTime": 1561700743000, "CancelType": null, "Note": null, "OrderNo": "P21784954245923", "PayTime": 1561614343000, "CreateTime": 1561614343000, "UpdateTime": 1561614343000, "Quantity": 1, "ChargeType": "postpaid", "Payments": null
}
}错误码 { .section}
| HttpCode | 错误码 | 错误信息 | 描述 |
|---|
| 400 | MissingParameter | The specified parameter OrderId is necessary for this request. | OrderId参数是请求必要参数 |
| 400 | InvalidCaller | The specified caller doesn’t exists. | 调用者不合法 |
| 500 | SystemError | System Error | 系统错误 |