Update Receipt Line Quantity
PATCH//:domain/api/v2/warehouse-transfers/receipts/:receipt/lines/:line
Update a warehouse transfer receipt line's quantity. The shipment line and warehouse transfer line are NOT mutated by this edit — they remain canonical intent.
Body fields:
quantity(required, integer ≥ 0) — new receipt line quantityconfirmed_implications(optional, boolean) — required when the preview reportsrequires_confirmation: trueredistribute_usages(optional, boolean) — required when reducing quantity causes FIFO usage redistribution
Returns 409 with the preview payload when confirmation is required and not yet provided.
Returns 422 with blocks.above_shipped: true when the new quantity exceeds the shipment line shipped quantity (minus other receipts), and blocks.above_transfer_line: true when it exceeds the warehouse transfer line quantity. The cap subtracts the totals of OTHER receipt lines on the same shipment line, so concurrent partial receipts each get their fair share.
Request
Responses
- 200
- 409
- 422
OK
Response Headers
Content-Type
Conflict
Response Headers
Content-Type
Unprocessable Entity
Response Headers
Content-Type