Acknowledge inbound stock for a SKU
POST/stock-receipts
This endpoint has been deprecated and may be replaced or removed in future versions of the API.
Stages a quantity of a SKU as received into the building (publishes StockReceived) without assigning it to a bin yet. This does NOT create a StockUnit aggregate: a StockUnit requires both an item-scan and a location-scan by construction (the stow-requires-both invariant), and a staged receipt has no bin yet. The durable, addressable record only starts at StowStock — that is why this operation returns 202 Accepted rather than 201 Created: there is no resource here to hand back a Location for. Superseded by the inbound-receiving handover (K24, ADR 0037: inbound-receiving publishes com.warehouse.wms.inbound-receiving.receipt.ReceiptLineReceived, whose Good lines are booked as staged stock through the same ReceiveStock use case); this endpoint stays as the documented manual fallback; removal planned with the next breaking window.
Request
Responses
- 202
- 400
- 409
- 422
- 500
Receipt accepted and staged; not yet stowed to a bin.
Response Headers
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.
Malformed JSON body, SKU missing/empty, or the Idempotency-Key header is absent (ADR 0018).
The Idempotency-Key was already used with a different method, path or body (idempotency-key-reused). Distinguishable from a business 409 by the problem type; a client bug, never retried blindly.
Quantity present but not a positive number.
An unexpected internal error occurred.