Get a location slot's resolved hazmat/temperature-class attributes
GET/locations/:locationCode/classification
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.
This context remains the sole source of truth for these attributes — Zone already carries Hazmat and TemperatureClass; this endpoint is the concrete realization of this context's Open Host Service / Published Language for that purpose (see ADR-0008).
A code that is not seven [A-Z0-9] segments is a 400, not a 404 — it could never identify a slot. An unknown location code, or one whose slot exists but whose zone cannot be resolved, is a 404.
Request
Responses
- 200
- 400
- 404
- 500
The slot's resolved classification.
Malformed input: a body that is not valid JSON, a location code that is not seven [A-Z0-9] segments, a missing required identifier, a query parameter outside its documented enum, an invalid limit / cursor or an undeclared query parameter on a paged collection, or a missing / malformed Idempotency-Key on a POST.
The named site, zone, aisle, slot, location type or placement rule does not exist.
An unexpected failure, e.g. the datastore is unavailable.