# 订单详情查询 (/products/qvm/order/4-get-order-information)



最近更新时间: 2021-02-01 12:27:24

# 请求路径 [#请求路径]

> `GET` /v1/order/detail/\<order\_hash>

# 请求参数 [#请求参数]

| 名称          | 类型     | 位置  | 必须 | 描述 |
| ----------- | ------ | --- | -- | -- |
| order\_hash | string | url | 是  |    |
| 订单 Hash     |        |     |    |    |

|

# 返回值 [#返回值]

| 名称          | 类型           | 描述    |
| ----------- | ------------ | ----- |
| request\_id | string       | 请求 ID |
| data        | OrderInfo\[] | 订单信息  |

### OrderInfo [#orderinfo]

| 名称           | 类型            | 描述      |
| ------------ | ------------- | ------- |
| order        | string        | 订单 Hash |
| fee          | float64       | 订单原价    |
| c\_fee       | float64       | 订单实付金额  |
| create\_time | string        | 创建时间    |
| pay\_time    | string        | 支付时间    |
| cancel\_time | string        | 取消时间    |
| expire\_time | string        | 支付过期时间  |
| status       | OrderStatus   | 订单状态    |
| items        | OrderItemInfo | 订单资源信息  |

### OrderStatus [#orderstatus]

| 名称       | 类型     | 描述              |
| -------- | ------ | --------------- |
| new      | string | 新建状态            |
| paid     | string | 已经支付状态          |
| canceled | string | 被取消状态           |
| complete | string | 订单下所有子订单都已经发货完成 |
| refund   | string | 用户订单执行了退款       |

### OrderItemInfo [#orderiteminfo]

| 名称                | 类型              | 描述       |
| ----------------- | --------------- | -------- |
| order\_type       | string          | 订单类型     |
| price             | float64         | 金额       |
| region            | string          | 地域       |
| resource\_type    | string          | 资源类型     |
| resource\_id      | string          | 资源 ID    |
| status            | OrderItemStatus | 发货状态     |
| life\_start\_time | string          | 生命周期生效时间 |
| life\_start\_time | string          | 生命周期失效时间 |

### OrderItemStatus [#orderitemstatus]

| 名称              | 类型     | 描述     |
| --------------- | ------ | ------ |
| non\_executable | string | 不可执行状态 |
| executable      | string | 可执行状态  |
| processing      | string | 正在执行中  |
| success         | string | 执行成功   |
| failed          | string | 执行失败   |
| fail\_over      | string | 失败次数过多 |
| cancelled       | string | 被取消    |
| refunded        | string | 已退款    |

## 返回值示例 [#返回值示例]

```json
{
  "data": {
    "order": "602892b7b500000eed4190e932000000",
    "fee": 29.55,
    "c_fee": 29.55,
    "create_time": "2020-09-16T11:57:18Z",
    "pay_time": "2020-09-17T14:58:22Z",
    "cancel_time": "0001-01-01T00:00:00Z",
    "expire_time": "2020-09-23T19:57:18+08:00",
    "status": "complete",
    "items": [
      {
        "order_type": "create",
        "resource_type": "instance",
        "resource_id": "i-xxxx",
        "region": "cn-qingdao",
        "price": 16.25,
        "status": "success",
        "life_start_time": "2020-09-17T14:59:07Z",
        "life_expire_time": "2020-10-18T00:00:00Z"
      },
      {
        "order_type": "create",
        "resource_type": "disk",
        "resource_id": "d-xxxx",
        "region": "cn-qingdao",
        "price": 13.3,
        "status": "success",
        "life_start_time": "2020-09-17T14:59:07Z",
        "life_expire_time": "2020-10-18T00:00:00Z"
      }
    ]
  },
  "request_id": "TRBUBYEtcQWEg18W"
}
```
