Locations
The coded leaf slots themselves — registering, reading, decommissioning, and bulk-importing a whole building's layout from a structured export. Also exposes a slot's resolved hazmat/temperature-class classification (GET /locations/{locationCode}/classification): the concrete realization of this context's Open Host Service / Published Language for cross-context placement validation (see ecosystem/consuming-this-service and ADR-0008).
Register one coded location slot
The core operation of this service. Registering a LocationSlot is a chain-of-custody check, not a bare insert: the Site, Zone and Aisle implied by the LocationCode's segments must all resolve to existing, Active aggregates (404 if any link is missing, 409 if one exists but is no longer Active), and the slot's LocationType must satisfy every PlacementRule applicable to its Zone (422, naming the violated rule, if not). There are no orphan slots, ever.
Bulk-import a whole building's layout
The bootstrap mechanism: takes a JSON array of fully-specified rows (a site/area/zone/aisle/bay/level/position address plus a LocationType) and loads a real warehouse's layout in one reproducible call, creating the Site, Zone and Aisle structure on first sight. A row naming structure that already exists reuses it and never mutates it, so an import cannot silently redefine a zone's temperature class.
Get one location slot
Returns a single LocationSlot by its LocationCode, with the code exploded into its seven typed coordinate segments so a renderer does not have to re-parse it. A code that is not seven `[A-Z0-9]` segments is a 400, not a 404 — it could never identify a slot.
Set a location slot's physical geometry
Records a coded slot's physical position, footprint, and (optionally) an explicit pick-sequence override (ADR-0017). The slot must already exist and must not be Decommissioned. Publishes LocationGeometryUpdated.
Declare a location slot's handling unit
Sets or changes the unit of handling (EACH, CASE or PALLET) the slot accepts (ADR-0040). The slot must already exist and must not be Decommissioned. Naturally idempotent (same body, same state), like the geometry PUT, so it takes no Idempotency-Key. Publishes LocationSlotHandlingUnitDeclared. inventory-storage uses the value to decide whether a sealed case may be stowed in the bin.
Get a location slot's resolved hazmat/temperature-class attributes
Resolves a LocationSlot's LocationCode to its parent Zone (the same Site/Area/Zone/Aisle chain-of-custody resolution `POST /locations` performs) and returns that Zone's `hazmat` and `temperatureClass` attributes. This is a deliberately cheap, denormalized read: it does not return the rest of the LocationSlot or Zone shape, only what a cross-context caller needs to validate placement of a classified product (e.g. `inventory-storage` checking that a Hazmat SKU only lands in a hazmat-rated Zone, or a TemperatureSensitive SKU only lands in a Zone with a matching TemperatureClass) without duplicating Zone data of its own.
Permanently retire a location slot
Marks the slot Decommissioned. This is a genuine domain command, not a CRUD update, which is why it is modelled as a transition resource (`decommissionings`) of the slot rather than a PATCH (REST API guideline 1.3 d). A retry with the same Idempotency-Key replays the stored 204 with `Idempotency-Replayed: true` instead of answering 409. A refusal that can still change (`location-slot-not-found` for a code not registered yet, `concurrent-modification`) is not stored: the key is released and the retry executes again.