**版本：202201**

# 查询集合关联列表

**GET** `/openapi/2022-01/collects`

分页返回集合关联列表。

## 请求

**Query参数**

- `collection_id` string

  集合 ID。
- `product_id` string

  商品 ID。
- `page` int32

  Page number
- `limit` string

  limit result per page, maximum 250

## 响应

**200 | 422**

200

**application/json**

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

**数据结构**

- `collects` object[]

  *   Array [

  - `id` string

    **示例：** `dec4897f-2537-44a7-91fb-9854f643ad1e`
  - `collection_id` string

    **示例：** `a60fe556-43ad-4e07-9125-507ac1bf71f7`
  - `product_id` string

    **示例：** `636a07da-39eb-4829-bde9-b65fae1c28b0`
  - `position` integer

    **默认值：** `0`

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

    **示例：** `2024-04-16T10:31:13Z`
  - `updated_at` string

    **示例：** `2024-04-16T10:31:13Z`
  *   ]

```json
{
  "collects": [
    {
      "id": "dec4897f-2537-44a7-91fb-9854f643ad1e",
      "collection_id": "a60fe556-43ad-4e07-9125-507ac1bf71f7",
      "product_id": "636a07da-39eb-4829-bde9-b65fae1c28b0",
      "position": 1,
      "created_at": "2024-04-16T10:31:13Z",
      "updated_at": "2024-04-16T10:31:13Z"
    }
  ]
}
```

```json
{
    "collects": [
        {
            "id": "dec4897f-2537-44a7-91fb-9854f643ad1e",
            "collection_id": "a60fe556-43ad-4e07-9125-507ac1bf71f7",
            "product_id": "636a07da-39eb-4829-bde9-b65fae1c28b0",
            "position": 1,
            "created_at": "2024-04-16T10:31:13Z",
            "updated_at": "2024-04-16T10:31:13Z"
        }
    ]
}
```

422

**application/json**

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

**数据结构**

- `errors` string[]

```json
{
  "errors": [
    "CollectionID must be a valid UUID"
  ]
}
```

```json
{
  "errors": [
    "CollectionID must be a valid UUID",
    "ProductID must be a valid UUID"
  ]
}
```
