---
title: "Unclaim Stock"
method: POST
path: "/api/v1/materials/inventory/unclaim"
tags: ["v1", "Materials"]
---

# Unclaim Stock

`POST /api/v1/materials/inventory/unclaim`

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

Put claimed units back on the shelf, in whole or in part.

Without this, changing your mind costs the whole row: delete four units and
re-claim three, which spends a second allocation, loses the original claim
date, and - if the lot has been restocked since - re-draws at a different
FIFO position and a different price. Returning one unused unit should not
reprice the three still on the job.

ONE ROW, ONE RESERVATION. The mirrored BOM row names its allocation through
mirrored_item_id, so a return releases exactly the reservation that row
created. A claim split across three lots is three rows and three returns -
which is right: each holds units from a different lot at a different price,
and returning "one" has to say which lot it goes back to.

## Request body

- UnclaimStockBody
  - `mirrored_item_id` integer, nullable
  - `allocation_id` integer, nullable
  - `return_qty` number, required

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