Skip to main content

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).

📄️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.