**版本：202601**

# 查询库存水平列表

**GET** `/openapi/2026-01/locations/:location_id/inventory_levels`

返回指定地点的所有库存水平信息。

## 请求

**Path参数**

- `location_id` uint64 (required)

  位置 ID

**Query参数**

- `cursor` string

  分页游标
- `page_size` int32

  每页记录数
- `page` int32

  页码（从 1 开始），与 cursor 互斥

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `inventory_levels` object[]

    库存水平列表

    *   Array \[

    - `inventory_item_id` string

      库存项 ID
    - `location_id` string

      地点 ID
    - `stock` int64

      库存数量
    - `updated_at` string

      最后更新时间，ISO-8601 格式
    *   \]
  - `cursor` string

    分页游标
  - `has_more` boolean

    是否有更多记录

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "inventory_levels": [
      {
        "inventory_item_id": "string",
        "location_id": "string",
        "stock": 0,
        "updated_at": "string"
      }
    ],
    "cursor": "string",
    "has_more": true
  }
}
```
