Skip to content

Get Location

GET /v2/tms-api/locations/{external_reference_id}

Retrieve details for a specific location using its external reference ID.

Path Parameters

external_reference_idstringrequired
The location's external reference ID (from your system)

Request Examples

bash
curl -X GET "https://api.mentium.io/v2/tms-api/locations/LOC-CHICAGO-001" \
  -H "X-API-Key: your_api_key_here"
python
import requests

response = requests.get(
    "https://api.mentium.io/v2/tms-api/locations/LOC-CHICAGO-001",
    headers={"X-API-Key": "your_api_key_here"}
)
print(response.json())

Response

200 OK

json
{
  "id": "loc_abc123def456",
  "external_reference_id": "LOC-CHICAGO-001",
  "name": "Chicago Distribution Center",
  "address_line1": "123 Industrial Blvd",
  "address_line2": null,
  "city": "Chicago",
  "state": "IL",
  "postal_code": "60601",
  "country": "US",
  "latitude": 41.8781,
  "longitude": -87.6298,
  "email": "warehouse@example.com",
  "phone_number": "312-555-0100",
  "weekday_open_hours": "08:00",
  "weekday_close_hours": "17:00",
  "weekend_open_hours": null,
  "weekend_close_hours": null,
  "internal_notes": null,
  "created_at": "2026-01-15T10:30:00Z",
  "updated_at": "2026-01-29T14:20:00Z"
}

404 Not Found

json
{
  "detail": "Location with external_reference_id 'LOC-CHICAGO-001' not found"
}

Response Fields

FieldTypeDescription
idstringInternal Mentium location ID
external_reference_idstringYour external reference ID
namestringLocation name
address_line1stringStreet address line 1
address_line2stringStreet address line 2
citystringCity name
statestringState/Province code
postal_codestringPostal/ZIP code
countrystringCountry code
latitudenumberLatitude (auto-geocoded if not provided)
longitudenumberLongitude (auto-geocoded if not provided)
emailstringContact email address
phone_numberstringContact phone number
weekday_open_hoursstringWeekday opening hours (HH:MM)
weekday_close_hoursstringWeekday closing hours (HH:MM)
weekend_open_hoursstringWeekend opening hours (HH:MM)
weekend_close_hoursstringWeekend closing hours (HH:MM)
internal_notesstringInternal notes
created_atstringCreation timestamp (ISO 8601)
updated_atstringLast update timestamp (ISO 8601)

Mentium TMS API Documentation