---
title: "Consume Allocation"
method: POST
path: "/api/v1/materials/inventory/consume-allocation"
tags: ["v1", "Materials"]
---

# Consume Allocation

`POST /api/v1/materials/inventory/consume-allocation`

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

Issue allocated units from a project line. Does not return them to stock.

Claimed: consume the claim ledger row, drop on-hand and allocated
together, then shrink the mirrored BOM row. Purchased: consume the
purchase ledger row on this lot. Scrap stays on the shop-lot write-off.

## Request body

- ConsumeAllocationBody
  - `item_id` integer, required
  - `allocation_id` integer, nullable
  - `qty` number, required
  - `reason` string, nullable

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