---
title: "List Stock Allocations"
method: GET
path: "/api/v1/materials/inventory/allocations"
tags: ["v1", "Materials"]
---

# List Stock Allocations

`GET /api/v1/materials/inventory/allocations`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/materials/inventory/allocations`
- Auth: none declared

Which projects are standing on these lots, and how much each one holds.

THE LEDGER IS SIGNED AND APPEND-ONLY. A claim is a positive row and a return
writes a negative one rather than editing or deleting the original, so
"what is allocated right now" is a SUM per allocation, never a row count and
never the newest row. A part claimed 6, returned 2 and claimed 3 again is
three rows netting 7, and any of the three read alone is wrong.

Rows are grouped by the mirrored BOM row, because that is the unit the
release endpoint takes and the unit a person sees on the project's own
materials table. An allocation whose mirror has already gone is netted to
zero by its own reversal and drops out here with it.

The caller passes the lots it is showing - a SKU drawer holds several - so
this answers for a whole part without the endpoint needing to re-derive
which lots fold together. Every id is still checked against the caller's
shop: the list arrives from the client and a bare id is not a permission.

catalogPartId also includes every lot of that identity so a project buy
written at QC is found even when the drawer only named sibling lots.

## Query parameters

- `itemIds` string: Comma-separated source material item ids
- `catalogPartId` string, nullable: Catalog identity: claimed lots plus project-purchased lines

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
