最近更新时间:2021-09-17
https://api.unicloud.com/transaction
QueryOrders
根据查询条件分页获取订单列表信息
| 名称 | 类型 | 是否必填 | 说明 |
|---|---|---|---|
| Action | String | 是 | 填写QueryOrders |
| PayType | String | 否 | 计费方式 |
| ProductCategory | String | 否 | 产品类型 |
| OrderCategory | Integer | 否 | 订单类型 |
| OrderStatus | Integer | 否 | 订单状态 |
| StartTime | String | 否 | 开始时间 (yyyy-MM-dd HH:mm:ss。样例:2019-06-03 00:00:00) |
| EndTime | String | 否 | 结束时间(yyyy-MM-dd HH:mm:ss。样例:2019-06-03 00:00:00) |
| Page | Integer | 是 | 页数 |
| Size | Integer | 是 | 每页个数 |
| 名称 | 类型 | 说明 |
|---|---|---|
| TotalCount | Integer | 总订单条数 |
| PageNum | Integer | 页码 |
| PageSize | Integer | 每页数量 |
| OrderList | Map<"Order",List> | 订单列表 |
order:
| 名称 | 类型 | 说明 |
|---|---|---|
| Id | String | 订单Id |
| OrderNo | String | 订单号 |
| UserId | String | 用户Id |
| UserName | String | 用户名 |
| AccountId | String | 账户Id |
| AccountName | String | 账户名 |
| OrderStatus | String | 订单状态 |
| OrderCategory | String | 订单类型 |
| PayType | String | 计费方式 |
| ChargeType | String | 扣费方式 |
| IsOffine | Boolean | 是否离线订单 |
| ProductCategory | String | 产品类型 |
| IsInvoice | Boolean | 是否开发票 |
| PayTime | Date | 支付时间 |
| TotalPrice | BigDecimal | 订单金额 |
| CouponAmount | BigDecimal | 优惠券减免金额 |
| PromotionAmount | BigDecimal | 促销金额 |
| PromotionRule | String | 营销规则 |
| FinalPrice | BigDecimal | 最终支付价格 |
| PaidAmount | BigDecimal | 实际支付价格 |
| ProductRegionId | String | 产品区域Id |
| ProductRegionName | String | 产品区域名称 |
| CreateTime | Date | 订单创建时间 |
| UpdateTime | Date | 订单修改时间 |
| InstanceId | String | 续费时对应的资源Id |
| Note | String | 备注 |
?Action=QueryOrders&PayType=DAY_MONTH&Size=10&Page=1 &其他公共参数
{ "OrderList": { "Order": [
{ "PromotionAmount": 0, "Note": null, "InstanceId": "35d272a7-4c2b-4079-aa50-45e6f7fa31b6", "Id": "1144155076852449280", "PromotionRule": null, "PaidAmount": null, "FinalPrice": 17.5, "OrderCategory": "NEW", "OrderNo": "P21785800229503", "PayTime": null, "CreateTime": 1561622802000, "UpdateTime": 1561622802000, "ChargeType": "postpaid", "CouponAmount": 0, "IsOffine": false, "IsInvoice": false, "PayType": "YEAR_MONTH", "UserId": "35d272a7-4c2b-4079-aa50-45e6f7fa31b6", "ProductCategory": "DATA_HARD_DISK", "AccountId": null, "AccountName": null, "TotalPrice": 17.5, "UserName": "haha", "ProductRegionId": "8b128f0c-e9ad-472c-9c20-451b9f310e94", "ProductRegionName": "cloudos-tj", "OrderStatus": "UNPAID"
},
{ "PromotionAmount": 0, "Note": null, "InstanceId": "35d272a7-4c2b-4079-aa50-45e6f7fa31b6", "Id": "1144119593783001088", "PromotionRule": null, "PaidAmount": null, "FinalPrice": 0, "OrderCategory": "NEW", "OrderNo": "P21784954245923", "PayTime": 1561614343000, "CreateTime": 1561614343000, "UpdateTime": 1561614343000, "ChargeType": "postpaid", "CouponAmount": 0, "IsOffine": false, "IsInvoice": false, "PayType": "CHARGING_HOURS", "UserId": "35d272a7-4c2b-4079-aa50-45e6f7fa31b6", "ProductCategory": "DATA_HARD_DISK", "AccountId": null, "AccountName": null, "TotalPrice": 0, "UserName": "haha", "ProductRegionId": "8b128f0c-e9ad-472c-9c20-451b9f310e94", "ProductRegionName": "cloudos-tj", "OrderStatus": "PAID"
}
]
}, "TotalCount": 80, "PageNum": 1, "PageSize": 2}| HttpCode | 错误码 | 错误信息 | 错误描述 |
|---|---|---|---|
| 400 | InvalidParameter | The specified moduleCode is not valid. | 指定的参数不合法。 |
| 400 | MissingParameter | The specified parameter Size is necessary for this request. | Size参数是请求必要参数 |
| 400 | MissingParameter | The specified parameter Page is necessary for this request. | Page参数是请求必要参数 |
| 400 | OverMaxPageSize | Max available page size is 200, please check your param. | 单页最大size为200,size超过最大限制 |
| 400 | OverMinPageSize | Min available page size is 1, please check your param. | 最小page为1,page超过最小限制 |
| 500 | SystemError | System Error | 系统错误 |