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

# List Claimable Stock

`GET /api/v1/materials/inventory/available`

## 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/available`
- Auth: none declared

Stock a project can claim: on the rack and not already spoken for.

Scoped to the caller's shop and to lots with qty_available > 0. Deliberately
NOT the receiving list filtered client-side — that returns every received
item ever, and the claim drawer only ever wants the few with stock left.

With ``project_id``, the view is the project's: a lot the job already holds
shows that figure too, because assigning to a part draws from the job's
own hold before it touches free stock (JEEVY-1890 C16). Without it the
dialog said "2 available" for a lot the job held 8 of (2026-10-09).

## Query parameters

- `search` string, nullable
- `project_id` integer, nullable: When set, a lot the project already holds (unassigned to any part) is listed with `held_by_job`, even if nothing is free on the rack. Assigning to a part splits that hold first; the picker must say so.

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-09** `d9ef00c0253a`: 1 info
  - added the new optional `query` request parameter `project_id`

[Operation history](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/changes/api/v1/materials/inventory/available/get.md)

---

[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)
