Skip to content

Get Location

Retrieve a single location by its ID from Last Mile Intelligence.

getLocation

location

ParameterTypeRequiredDefaultDescription
Location IDstringYes-The ID of the location to retrieve
{
"id": "loc_abc123",
"name": "Main Warehouse",
"type": "warehouse",
"address": {
"street": "100 Industrial Pkwy",
"city": "Chicago",
"state": "IL",
"zip": "60601"
},
"coordinates": {
"latitude": 41.8781,
"longitude": -87.6298
},
"isActive": true
}
{
"success": false,
"error": "Location not found",
"locationId": "invalid_id"
}
  • Missing API Token: LMI credential is missing API token
  • Location Not Found: Location with specified ID does not exist
  • Permission Denied: API token lacks permission for this operation