Preview Release Impact
POST/api/amazon/:integrationInstance/removal-shipments/:removalShipment/receive/preview-release-impact
Dry-run preview of which back-ordered sales orders would be filled by receiving this Amazon FBA removal shipment, per sellable line. Read-only — nothing is received, no stock moves and no allocation changes.
This endpoint currently requires session authentication; Personal Access Token scope support is in progress.
Post the receipt payload you would send to Receive Shipment. The sellable quantity_new units on each line are treated as a hypothetical receipt into the removal order's receiving warehouse.
Request body:
receipt_date(string, required, date) — the receipt date.items(array, required, at least 1) — one entry per received product line.items[].quantity_new(integer, required, >= 0) — resellable units received.items[].quantity_discarded(integer, required, >= 0) — damaged units discarded.items[].cogs_per_unit(number, required, >= 0) — landed cost per unit.items[].product_id(integer, optional) — the product received. May be null ONLY for a discard-only receipt of an FNSKU marked as an unknown item, in which casequantity_newandquantity_blemishedmust be 0 andquantity_discarded> 0. Otherwise it is required.items[].removal_shipment_id(integer, optional) — the removal shipment the line came from.items[].quantity_blemished(integer, optional, >= 0) — units received as blemished.items[].blemished_configurations(array, optional) — one entry per blemished unit.items[].discard_notes(string, optional, max 1000) — reason for the discard, kept on the audit trail.release_backorders(boolean, optional) —trueforce-releases waiting back-orders past the tenant auto-release setting,falsereceives as free stock, and omitting it honours the tenant setting.release_sales_order_ids(array of integers, optional) — restrict the release to specific sales orders. Omitted or empty releases to all waiting back-orders.
Response: data is an array with one row per received product:
product_id,product_sku,product_name— the product being received.releasable_quantity— total units that would be released to back-orders.orders— sales orders that would receive stock, each withsales_order_id,order_number,customer_nameandquantity.held_back— demand that would NOT be released, each with areason_keptexplaining why (for example "Insufficient supply").
Authentication: requires a Bearer token.
Request
Responses
- 200
- 401
- 403
- 404
- 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.
Validation failed — the body is a field → messages map (Laravel shape) or the platform envelope with a stable machine-readable code. Fix the payload and resubmit.
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.