Skip to main content

Decide what happens to a held unit

POST 

/held-stock/:id/dispositions

The disposition decision (ADR 0052). RELEASE returns the quantity to usable stock through the same staged-receipt seam as a fresh receipt (it is usable once stowed) and emits StockReleased; RETURN_TO_VENDOR and SCRAP remove the unit; REWORK keeps it HELD under a new reason (default OTHER). Every decision emits StockDispositioned. The decision, the unit's save and the events are one transaction. A unit that already has a final disposition is 409 held-unit-closed.

Behind the Idempotency-Key middleware like the other creating POSTs (ADR 0018).

Request​

Responses​

The unit after the decision (REMOVED, or still HELD for REWORK).

Response Headers
    Idempotency-Replayed

    Present, with the value true, ONLY when this response is a replay of the stored answer for the request's Idempotency-Key (the handler did not run again). The first execution of a key never carries it, and neither does a retry of a refusal that was not stored (ADR 0053: concurrent-modification and every refusal that depends on state that can change): that retry executes again.