**版本：202201**

# 查询退款记录数量

**GET** `/openapi/2022-01/orders/refund_records/count`

返回符合过滤条件的退款记录总数，过滤参数与列表接口一致，常用于分页 UI 和 数据看板。

## 请求

**Query参数**

- `order_ids` string

  按订单 ID 过滤，最多支持 10 个。
- `refund_record_ids` string

  Refund record id, comma-separated, A maximum of 20 ids are supported, for example: '396114279473883074,400561078532063170'.
- `refund_status` string

  Refund record status, comma-separated, status support: `pending`, `finished`, `failed`
- `created_at_start` string

  按创建时间过滤的起始值（如 2018-11-02T12:30:10Z）。
- `created_at_end` string

  按创建时间过滤的结束值（如 2018-11-02T12:30:10Z）。
- `updated_at_start` string

  按最后更新时间过滤的起始值（如 2018-11-02T12:30:10Z）。
- `updated_at_end` string

  按最后更新时间过滤的结束值（如 2018-11-02T12:30:10Z）。

## 响应

**200 | 422**

200

**application/json**

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

**数据结构**

- `count` integer

  **默认值：** `0`

  **示例：** `15`

```json
{
  "count": 15
}
```

```json
{
    "count": 15
}
```

422

**application/json**

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

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "created_at_min time format error"
  ]
}
```

```json
{
  "errors": [
    "created_at_min time format error",
    "created_at_max time format error",
    "UpdatedAtMin time format error",
    "updated_at_end time format error"

  ]
}
```
