版本:202607
查询库存水平列表
GET/openapi/2026-07/locations/:location_id/inventory_levels
返回指定地点的所有库存水平信息。
请求
Path参数
location_id uint64必填
位置 ID
Query参数
cursor string
分页游标
page_size int32
每页记录数
响应
- 200
OK
- application/json
- 数据结构
- 示例
数据结构
- Array [
- ]
codestring
错误码
messagestring
错误信息
data object
inventory_levels object[]
库存水平列表
inventory_item_idstring
库存项 ID
location_idstring
地点 ID
stockint64
库存数量
updated_atstring
最后更新时间,ISO-8601 格式
cursorstring
分页游标
has_moreboolean
是否有更多记录
{
"code": "string",
"message": "string",
"data": {
"inventory_levels": [
{
"inventory_item_id": "string",
"location_id": "string",
"stock": 0,
"updated_at": "string"
}
],
"cursor": "string",
"has_more": true
}
}