---
title: "Inventory - Calculate Free Map"
method: POST
path: "/inventory/calculate_free_map"
tags: ["inventory"]
---

# Inventory - Calculate Free Map

`POST /inventory/calculate_free_map`

Calculate available inventory by subtracting reserved quantities from on-hand stock.

## Request body

- object
  - `items_ids` string[], required — Array of item IDs
  - `warehouse_ids` string[] — Filter by warehouse IDs

## Response `200`

Map of item IDs to free inventory quantities. When warehouse_linked_reserves is enabled, returns nested map by warehouse_id then item_id.

- object

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden. Insufficient permissions.
- `429` — Too many requests. Rate limit exceeded.
- `500` — Internal server error.

## Changes

- **2026-03-02** `fa53dd949b8e` — 1 info
  - endpoint added
- **2024-04-19** `46ceda528000` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/skulabs/apis/skulabs-api/changes/inventory/calculate_free_map/post.md)

---

[API](https://skmtc.dev/skulabs/apis/skulabs-api.md) · [All operations](https://skmtc.dev/skulabs/apis/skulabs-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/skulabs/skulabs-api/revisions/4b5ec0ed78a6/schema)
