Compute a placement plan for one seller item (ComputePlacementPlan)
POST/placement-plans
Roadmap feature F6 (ADR 0012): reads the DemandHeatView (fulfilments locked per (item, region) over the observation window and current listing availability per node) and records a deterministic placement advisory. For each region with demand, suggested units per node = max(0, ceil(demand x coverDays / windowDays) - region availability) split across the region's ACTIVE vendor fulfilment centres proportionally to their availability (evenly when all zero). An item with no demand anywhere yields an EMPTY plan, which is legal. A new plan for the same (sellerId, catalogItemId) supersedes the previous one. Publishes PlacementPlanSuggested (analytics-only consumer in v1). A coverDays outside 1 to 90 is rejected with 400 invalid-cover-days.
Request
Responses
- 201
- 400
- 409
- 422
- 500
The computed plan (or replayed for a known Idempotency-Key, when the first answer was stored).
Response Headers
Present, with the value true, only when this answer is a replay of the stored response of an earlier request with the same Idempotency-Key. A refusal whose problem type is RETRYABLE is never stored, so it is never replayed.
The Idempotency-Key header is missing (idempotency-key-required) or is not 1 to 128 printable ASCII characters (idempotency-key-invalid).
The Idempotency-Key header is missing (idempotency-key-required) or is not 1 to 128 printable ASCII characters (idempotency-key-invalid).
The request is malformed or breaks a rule. Problem types: validation-failed, case-pack-not-uniform (ErrCasePackNotUniform), case-qty-mismatches-gtin (ErrCaseQtyMismatchesGtin), carton-overweight (ErrCartonOverweight), carton-oversize (ErrCartonOversize), invalid-sscc (ErrInvalidSscc), carton-contents-mismatch-plan (ErrCartonContentsMismatchPlan), inbound-capacity-exceeded (ErrInboundCapacityExceeded, ADR 0015), network-split-destination (ErrNetworkSplitDestination, ADR 0015) and network-split-unavailable (ErrNetworkSplitUnavailable, ADR 0015).
An unexpected failure (internal-error); the detail never carries the internal message. A 5xx is never stored by the idempotency middleware, so the same Idempotency-Key retries the real work.