**版本：202201**

# 查询订单风险记录列表

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

返回指定订单上的自定义风险记录列表，使用 cursor 分页，每页最多 page_size 条 （1-100，默认 10）；翻页时传入上一次响应中的 cursor。

## 请求

**Path参数**

- `order_id` string (required)

  订单 ID。

**Query参数**

- `page` int32

  Page number
- `per_page` int32

  Limit per page

## 响应

**200 | 404**

200

**application/json**

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

**数据结构**

- `total` integer

  **默认值：** `0`

  **示例：** `4`
- `risks` object[]

  *   Array [

  - `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
{
  "total": 4,
  "risks": [
    {
      "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
{
  "total": 4,
  "risks": [
    {
      "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": [
    "Unable to find resource"
  ]
}
```

```json
{
  "errors": [
    "Unable to find resource"
  ]
}
```
