**版本：202201**

# 查询采购单列表

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

分页返回采购单列表。

## 请求

**Query参数**

- `page` int32

  Page number for pagination. Must be greater than 0. Default: 1.
- `limit` int32

  Number of records per page. Must be greater than 0 and less than 100. Default: 10.
- `ids` string[]

  ID 列表。
- `state` int32

  采购单状态筛选，可选值：`1`（待到货）、`2`（部分收货）、`3`（收货完成）、`4`（已取消）。
- `created_at_min` string

  最早创建时间。
- `created_at_max` string

  最晚创建时间。
- `updated_at_min` string

  最早更新时间。
- `updated_at_max` string

  最晚更新时间。

## 响应

**200**

200

**application/json**

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

**数据结构**

- `procurements` object[]

  *   Array [

  - `id` string

    **示例：** `382451985837728044`
  - `procurement_sn` string

    **示例：** `00000002`
  - `supplier_id` string

    **示例：** `382453603865993516`
  - `location_id` string

    **示例：** `190035786870033452`
  - `note` string

    **示例：** `teest note`
  - `state` integer

    **默认值：** `0`

    **示例：** `4`
  - `pending_quantity` integer

    **默认值：** `0`

    **示例：** `0`
  - `received_quantity` integer

    **默认值：** `0`

    **示例：** `0`
  - `rejected_quantity` integer

    **默认值：** `0`

    **示例：** `0`
  - `transfer_quantity` integer

    **默认值：** `0`

    **示例：** `0`
  - `created_by` string

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

    **示例：** `2024-05-21T08:47:39Z`
  - `updated_at` string

    **示例：** `2024-05-21T09:59:29Z`
  *   ]
- `count` integer

  **默认值：** `0`

  **示例：** `2`

```json
{
  "procurements": [
    {
      "id": "382451985837728044",
      "procurement_sn": "00000002",
      "supplier_id": "382453603865993516",
      "location_id": "190035786870033452",
      "note": "teest note",
      "state": 4,
      "pending_quantity": 0,
      "received_quantity": 0,
      "rejected_quantity": 0,
      "transfer_quantity": 0,
      "created_by": "",
      "created_at": "2024-05-21T08:47:39Z",
      "updated_at": "2024-05-21T09:59:29Z"
    }
  ],
  "count": 2
}
```

```json
{
    "procurements": [
        {
            "id": "382451985837728044",
            "procurement_sn": "00000002",
            "supplier_id": "382453603865993516",
            "location_id": "190035786870033452",
            "note": "teest note",
            "state": 4,
            "pending_quantity": 0,
            "received_quantity": 0,
            "rejected_quantity": 0,
            "transfer_quantity": 0,
            "created_by": "",
            "created_at": "2024-05-21T08:47:39Z",
            "updated_at": "2024-05-21T09:59:29Z"
        },
        {
            "id": "382416861263834540",
            "procurement_sn": "00000001",
            "supplier_id": "382415819906231724",
            "location_id": "190035786870033452",
            "note": "test11",
            "state": 3,
            "pending_quantity": 0,
            "received_quantity": 148,
            "rejected_quantity": 36,
            "transfer_quantity": 100,
            "created_by": "",
            "created_at": "2024-05-21T06:28:05Z",
            "updated_at": "2024-05-21T07:26:33Z"
        }
    ],
    "count": 2
}
```
