**Version: 202601**

# Create inventory

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

Sets the inventory level for a specific location and inventory item.

## Request

**application/json**

**Body | Example**

**Body (required)**

- `inventory_item_id` string (required)

  Inventory item ID
- `location_id` string (required)

  Location ID

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

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `inventory_level` object

    Inventory level

    - `inventory_item_id` string

      Inventory item ID
    - `location_id` string

      Location ID
    - `stock` int64

      Stock quantity
    - `updated_at` string

      Last update timestamp, in ISO-8601 format

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