Yard Management API
The WMS-tier owner of everything physically on site outside the four walls (ADR 0001, ADR 0002): visits through the gate (YardVisit), the trailers on site and where each is (Trailer), the moves hostlers and visiting drivers make (YardMove), yard checks (YardCheck) and the per-site yard rules (YardPolicy). It is the source of dwell, door occupancy and yard truck productivity facts.
A trailer on site is at exactly one place: one yard spot, one door, or one open move. A spot or a door holds at most one trailer. Moves are pulled by hostlers (claim-next with a lease), never pushed. Appointments, door closures, locations and ASN contents come from event-fed local copies (ADR 0003); this API never calls a sibling context. Events are published as CloudEvents on warehouse.yard-management.events and .analytics through a transactional outbox (see apis/asyncapi.yaml).
Sites are addressed by siteCode and doors and spots by their facility-layout locationCode (globally unique). Errors are RFC 7807 problem documents with type = https://errors.yard-management.warehouse-systems.dev/<slug>, the slug being the kebab-case of the domain error name (ErrLocationOccupied is location-occupied). There is no authentication layer (fleet decision 2026-09-11).
Three problem types belong to no single operation. A path that matches no route, or one that carries a NUL character, is a 404 resource-not-found. A method that a path does not take is a 405 method-not-allowed, with an Allow header that lists the methods the path does take. Every command (each POST and PUT except the two sweeps) can answer 409 concurrent-modification when another request changed the same aggregate first (the optimistic version guard, ADR 0008): nothing is persisted, and the refusal is not stored under the Idempotency-Key of the request (replay class RETRYABLE, ADR 0019), so read the resource again and retry, with the same key or a new one.
Contact yard-management maintainers:
License