Preview Process with Stock Take
GET/api/amazon/:integrationInstance/inbound/shipments/:shipment/process-preview
Preview the covering stock take that the "Process with Stock Take" action would create for this legacy FBA inbound. Resolves the source warehouse (from the ship-from mapping) and destination FBA warehouse, aggregates the inbound's items per product, and computes each product's source-warehouse shortfall (max(0, needed − on-hand available).
Any valid API token can call this endpoint — no specific scope required. Manage tokens.
Returns:
can_process(bool) — false when any hard blocker is presentsource_warehouse/destination_warehouse— {id, name} or null when unresolvedlines[]— per-product {line_id, sku, product_id, needed_qty, current_available, shortfall}skipped_lines[]— unmapped inbound lines that will be ignored {line_id, sku, reason}blockers[]— hard blockers as {code, message}; codes: NoSourceWarehouse, IneligibleStatus, AlreadyProcessed, AwdSource, PoRouted, NoMappedLinestotals— {units, shortfall}
This is a read-only computation — it does not create a stock take or mutate inventory. Use it to populate the confirm dialog and to disable the confirm button (with the blocker message as the tooltip reason) when can_process is false.
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.