Get a location
Returns a single location by its ID, including its address fields, geo coordinates, compliance metrc_id, and its linked license. Use this to resolve a location referenced elsewhere (for example the location_id on a purchase or order) into its full detail.
Several fields can be null: license / license_id when the location has no compliance license; metrc_id when it is not synced to a Metrc room (and when present it is a raw Metrc integer id, not a Distru id); and latitude / longitude when no coordinates have been set.
Lookups are scoped to your own company: an ID that does not exist, or that belongs to another company, returns 404 — the two cases are indistinguishable. A soft-deleted location is still returned here (with a non-null deleted_at); it is only hidden from the list endpoint unless you opt in via its deleted filter.
Required permission: companies_permissions_view.
Request
- Base URLhttps://app.distru.com
- AuthHTTP bearer
Path parameters
The location's Distru ID, as returned in the id field of a location response. IDs from external systems such as Metrc are not accepted here.
Response
A single location
Example response
{
"data": {
"address": "1234 Warehouse Street, Oakland, CA",
"company_id": "02c88a3f-d759-4973-88f9-60049d682524",
"id": "02c88a3f-d759-4973-88f9-60049d682524",
"license": {
"id": "02c88a3f-d759-4973-88f9-60049d682524",
"license_number": "C11-1234567890"
},
"license_id": "02c88a3f-d759-4973-88f9-60049d682524",
"name": "Warehouse 1"
}
}Changes
No recorded changes to this operation across all 17 revisions of this API.