**版本：202201**

# 查询订单风险记录

**GET** `/openapi/2022-01/orders/:order_id/risks/:id`

按风险记录 id 查询订单上的单条风险记录，返回风险等级、详情原因、自定义属性以及创建/更新时间。

## 请求

**Path参数**

- `order_id` string (required)

  订单 ID。
- `id` string (required)

  订单风险记录 ID。

## 响应

**200 | 404 | 422**

200

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `risk` object

  - `id` string

    **示例：** `372997190408224746`
  - `order_id` string

    **示例：** `633130-00000015`
  - `level` string

    **示例：** `low`
  - `value` string[]
  - `properties` object

    - `key` string

      **示例：** `value`
  - `created_at` string

    **示例：** `2024-04-25T06:37:40Z`
  - `updated_at` string

    **示例：** `2024-04-25T06:37:40Z`

```json
{
  "risk": {
    "id": "372997190408224746",
    "order_id": "633130-00000015",
    "level": "low",
    "value": [
      "wrong order price"
    ],
    "properties": {
      "key": "value"
    },
    "created_at": "2024-04-25T06:37:40Z",
    "updated_at": "2024-04-25T06:37:40Z"
  }
}
```

```json
{
  "risk": {
    "id": "372997190408224746",
    "order_id": "633130-00000015",
    "level": "low",
    "value": [
      "wrong order price"
    ],
    "properties": {
      "key": "value"
    },
    "created_at": "2024-04-25T06:37:40Z",
    "updated_at": "2024-04-25T06:37:40Z"
  }
}
```

404

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "Record not found"
  ]
}
```

```json
{
  "errors": [
    "Record not found"
  ]
}
```

422

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "ID format error"
  ]
}
```

```json
{
  "errors": [
    "ID format error"
  ]
}
```
