Skip to main content

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).

Authorization

Any valid API token can call this endpoint — no specific scope required. Manage tokens.

Returns:

  • can_process (bool) — false when any hard blocker is present
  • source_warehouse / destination_warehouse — {id, name} or null when unresolved
  • lines[] — 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, NoMappedLines
  • totals — {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

OK

Response Headers
    Content-Type