Preview Receipt Line Quantity Change
GET/api/v2/warehouse-transfers/receipts/:receipt/lines/:line/quantity-preview
Preview the implications of changing a warehouse transfer receipt line quantity without persisting any changes.
warehouses:readGrant this scope to your token under Settings → Developer → Personal Access Tokens.
Returns:
delta— change vs. current quantityrequires_confirmation— true if the user must confirm before savingcan_update— false when blocking conditions existblocks.above_shipped— true if the new quantity exceeds the parent shipment line's shipped quantity (minus other receipts against the same shipment line)blocks.above_transfer_line— true if the new quantity exceeds the parent warehouse transfer line quantity (minus other receipts against the same shipment line)caps.shipped_quantity— shipment line shipped quantitycaps.transfer_line_quantity— warehouse transfer line quantitycaps.other_receipts_total— total received on the same shipment line via other receipts (excluding the line being edited)caps.max_quantity— minimum ofshipped - other_receipts_totalandtransfer_line - other_receipts_totalimplications.shipment_quantity— shipment line quantity is NOT mutated by a receipt editimplications.transfer_quantity— warehouse transfer line quantity is NOT mutated by a receipt editimplications.in_transit_quantity— recomputed in-transit at destination after editinventory— FIFO usage / redistribution preview (when decreasing)
Request
Responses
- 200
- 401
- 403
- 404
- 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.
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.