---
title: "Inventory - Get Grouped Locations Map"
method: POST
path: "/inventory/get_grouped_locations_map"
tags: ["inventory"]
---

# Inventory - Get Grouped Locations Map

`POST /inventory/get_grouped_locations_map`

Retrieve inventory quantities grouped by location across warehouses.

## Request body

- object
  - `data` object, required — Query data object

## Response `200`

Inventory grouped by location or element. Returns an array by default, or a map when result_type is "map".

- union
  - GroupedLocationEntry[]
    - `_id` string, required — Group key (location_id or element_id depending on group_by)
    - `locations` object[], required — Location entries in the group
      - `location_id` string, required — Location identifier
      - `item_id` string, required — Item identifier
      - `on_hand` number, required — Quantity on hand
      - `alert` number — Alert threshold
  - object

## Other responses

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

---

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