Update Receipt Line Quantity
PATCH/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.
warehouses:writeGrant this scope to your token under Settings → Developer → Personal Access Tokens.
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.
Requires permission: warehouse_transfers.receive
Request
Responses
- 200
- 401
- 403
- 404
- 409
- 422
- 429
OK
Response Headers
Unauthenticated — the bearer token is missing, revoked, expired, or malformed. Never retry automatically; fix the credential. See the Errors guide.
Forbidden — the token lacks a required scope, the endpoint is not available to API tokens, or the user behind the token lacks the permission. A human must adjust the token scopes or user permissions; do not retry.
Not found — no record with the given identifier (or the route does not exist). Verify the ID before retrying.
Conflict
Response Headers
Unprocessable Entity
Response Headers
Rate limited — platform limit is 1,000 requests/min; individual tokens may carry lower limits. Honor the Retry-After header before retrying. See the Rate Limits guide.