**版本：202601**

# 更新库存

**PUT** `/openapi/2026-01/inventory_levels`

在指定地点对库存项作增量调整。

## 请求

**application/json**

**请求体 | 示例**

**请求体 (required)**

- `inventory_item_id` string (required)

  库存项 ID
- `location_id` string (required)

  地点 ID
- `stock_adjustment` int32 (required)

  库存调整量

```json
{
  "inventory_item_id": "string",
  "location_id": "string",
  "stock_adjustment": 0
}
```

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `inventory_level` object

    库存层级

    - `inventory_item_id` string

      库存项 ID
    - `location_id` string

      地点 ID
    - `stock` int64

      库存数量
    - `updated_at` string

      最后更新时间，ISO-8601 格式

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "inventory_level": {
      "inventory_item_id": "string",
      "location_id": "string",
      "stock": 0,
      "updated_at": "string"
    }
  }
}
```
