Skip to main content

List a site's planned capacity windows

GET 

/planned-capacity

Reads order-management's LOCAL read model of warehouse-planning's CapacityPlans for one site (ADR 0031): a PLANNED statement about a future window — the demand the planned capacity cannot process in it (shortage, in orders) — mirrored from the CloudEvents warehouse-planning publishes on warehouse.warehouse-planning.events. It is not live execution state and is never refreshed by calling warehouse-planning. Windows of every status are listed (a DRAFT is visible here but never influences an order; a SUPERSEDED plan was replaced by a newer one of the same window, names it in supersededBy and never influences an order again, ADR 0052; only a PUBLISHED plan with shortage > 0 annotates orders — see capacityConstraint on the Order schema). Windows that ended before from are omitted. This route exists only when the integration is enabled; otherwise it is a 404.

Not paged (x-pagination-exempt: report, REST guideline 3.5): a bounded read model of ONE site's planned windows, scoped by the required site and the from instant, whose size is set by the planning horizon warehouse-planning publishes, not by order volume.

Request​

Responses​

The site's planned windows ordered by start (possibly none).