**Version: 202201**

# List Procurement Items

**GET** `/openapi/2022-01/procurements/:id/items`

Retrieves the items associated with a given procurement ID.

## Request

**Path Parameters**

- `id` string (required)

  Procurement' ID

**Query Parameters**

- `page` int32 (required)

  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.

## Responses

**200 | 400**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `count` integer

  **Default value:** `0`

  **Example:** `1`
- `items` object[]

  *   Array [

  - `id` string

    **Example:** `382706477153919276`
  - `procurement_id` string

    **Example:** `382706443201028396`
  - `pending_quantity` integer

    **Default value:** `0`

    **Example:** `100`
  - `received_quantity` integer

    **Default value:** `0`

    **Example:** `0`
  - `rejected_quantity` integer

    **Default value:** `0`

    **Example:** `0`
  - `transfer_quantity` integer

    **Default value:** `0`

    **Example:** `100`
  - `variant_id` string

    **Example:** `4f442546-3a60-43b2-baa5-5e1f07c85464`
  - `product_id` string

    **Example:** `cbf9e2d2-7f2c-4881-ab7c-abf8e6590592`
  - `product_title` string

    **Example:** `test`
  - `variant_title` string

    **Example:**
  - `variant_sku` string

    **Example:**
  - `created_at` string

    **Example:** `2024-05-22T01:38:54Z`
  - `updated_at` string

    **Example:** `2024-05-22T01:38:54Z`
  - `product_image` object

    - `src` string

      **Example:** `//img.staticdj.com/c8bf5695d347092d7a010f00182581f7.jpeg`
    - `width` integer

      **Default value:** `0`

      **Example:** `710`
    - `height` integer

      **Default value:** `0`

      **Example:** `799`
    - `alt` string

      **Example:**
  *   ]

```json
{
  "count": 1,
  "items": [
    {
      "id": "382706477153919276",
      "procurement_id": "382706443201028396",
      "pending_quantity": 100,
      "received_quantity": 0,
      "rejected_quantity": 0,
      "transfer_quantity": 100,
      "variant_id": "4f442546-3a60-43b2-baa5-5e1f07c85464",
      "product_id": "cbf9e2d2-7f2c-4881-ab7c-abf8e6590592",
      "product_title": "test",
      "variant_title": "",
      "variant_sku": "",
      "created_at": "2024-05-22T01:38:54Z",
      "updated_at": "2024-05-22T01:38:54Z",
      "product_image": {
        "src": "//img.staticdj.com/c8bf5695d347092d7a010f00182581f7.jpeg",
        "width": 710,
        "height": 799,
        "alt": ""
      }
    }
  ]
}
```

```json
{
    "count": 1,
    "items": [
        {
            "id": "382706477153919276",
            "procurement_id": "382706443201028396",
            "pending_quantity": 100,
            "received_quantity": 0,
            "rejected_quantity": 0,
            "transfer_quantity": 100,
            "variant_id": "4f442546-3a60-43b2-baa5-5e1f07c85464",
            "product_id": "cbf9e2d2-7f2c-4881-ab7c-abf8e6590592",
            "product_title": "test",
            "variant_title": "",
            "variant_sku": "",
            "created_at": "2024-05-22T01:38:54Z",
            "updated_at": "2024-05-22T01:38:54Z",
            "product_image": {
                "src": "//img.staticdj.com/c8bf5695d347092d7a010f00182581f7.jpeg",
                "width": 710,
                "height": 799,
                "alt": ""
            }
        }
    ]
}
```

400

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "invalid procurement_id"
  ]
}
```

```json
{
  "errors": [
    "invalid procurement_id"
  ]
}
```
