Service Areas
Which delivery station serves a postal prefix (aggregate ServiceArea).
Introduction
REST contract of the node-topology bounded context of the retail network, derived from retail-network-docs model/model.yaml (contexts[node-topology].rest, .aggregates, .publishes, conventions.errors). Node Topology is the authoritative registry of nodes, their declared operational profiles, lanes, regions and service areas. vendor-connectivity calls POST /nodes and PUT /nodes/{nodeId}/operational-profile in-organization while it processes vendor submissions; the network-ops planner calls the other write routes and may also declare a network node's profile (declaredBy NETWORK_OPS); any context may call the read routes. No authentication, consistent with the fleet. Errors are RFC 9457 problem details. The shared problem types are not-found (404), illegal-transition (409), concurrent-update (409) and validation-failed (422).
Activate a node (ActivateNode)
PROPOSED or SUSPENDED to ACTIVE. Publishes NodeActivated.
Assign a postal prefix to a delivery station (AssignServiceArea)
Creates or reassigns the prefix under a strictly higher assignmentVersion (ASSIGNED to ASSIGNED). The region is taken from the station and must be a defined Region. Publishes ServiceAreaAssigned.
Close a lane (CloseLane)
OPEN to CLOSED. Publishes LaneClosed.
Declare the cost per package-unit of a lane (DeclareLaneCost)
Records the planner's declared marginal cost of moving ONE package-unit across the lane on one departure, integer cents (0..10000000). Valid on an OPEN lane only; every declaration supersedes the previous value and publishes LaneCostDeclared.
Declare the carbon emission per package-unit of a lane (DeclareLaneEmission)
Records the planner's declared carbon emission of moving ONE package-unit across the lane on one departure, grams of CO2-equivalent (0..10000000). Valid on an OPEN lane only; every declaration supersedes the previous value and publishes LaneEmissionDeclared.
Declare a new operational profile revision (DeclareOperationalProfile)
Appends a profile revision; earlier revisions are never edited. Called by vendor-connectivity (declaredBy VENDOR) and by the network-ops planner (declaredBy NETWORK_OPS). Every day of a cutoff must fall inside the operating hours of that day, and a revision of an ACTIVE FULFILLMENT_CENTER keeps at least one cutoff and a handlingTime above zero. sortDwellMinutes is accepted only for SORTATION_CENTER and AIR_HUB nodes. The optional inbound limits (maxCartonWeightG, maxCartonDimsMm, acceptsPallets, requiresSscc) are declared per revision; a revision without inbound declares none, and consumers then treat inbound limits as unchecked. Only node types with the INBOUND capability (FULFILLMENT_CENTER, INBOUND_CROSS_DOCK) declare inbound limits; any other type is 422 inbound-limits-not-allowed. Publishes NodeOperationalProfileDeclared.
Define a region (DefineRegion)
Publishes RegionDefined.
Get one node with its current operational profile (GetNode)
Open Host Service read of one node with its capabilities and current operational profile revision. An unknown nodeId is 404 not-found.
Get a region (GetRegion)
Returns one region by its id, or the problem type not-found when it does not exist.
Lanes
Lanes
List lanes by origin and destination (ListLanes)
Open Host Service read, keyset-paginated by laneId ascending. Both filters are optional and combine with AND; open and closed lanes are listed, distinguished by status.
List nodes by type, region and status (ListNodes)
Open Host Service read, keyset-paginated by nodeId ascending. Each filter is optional and filters combine with AND; an empty result is 200 with an empty items list.
List regions (ListRegions)
Keyset-paginated, ordered by regionId.
Nodes
Nodes
Open a lane between two nodes (OpenLane)
Both ends must be ACTIVE and the type pair allowed. Publishes LaneOpened.
Regions
Regions
Register a node (RegisterNode)
Creates a node in state PROPOSED and publishes NodeRegistered. Capabilities are derived from the node type (DefaultCapabilitiesByType). Parcel nodes (SORTATION_CENTER, DELIVERY_STATION, AIR_HUB) must have operator NETWORK.
Resolve which delivery station serves a postal prefix (ResolveServiceArea)
Open Host Service read of the current assignment of a postal prefix. An unassigned prefix is 404 not-found.
Retire a node (RetireNode)
ACTIVE or SUSPENDED to RETIRED, which is terminal. Publishes NodeRetired.
Service Areas
Service Areas
Suspend a node (SuspendNode)
ACTIVE to SUSPENDED. Publishes NodeSuspended.