Skip to content

Get all locations

Request

Fetches the list of all locations available in the system. A valid authorization token is required to access this endpoint.

Security
Bearer
curl -i -X GET \
  https://developer.sustainabilitymaster.ai/_mock/openapi/api/EnterpriseTables/Location \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

Successfully retrieved the list of locations

Bodyapplication/json
Array [
idinteger, (int32)

Unique identifier for the location entry.

Example:1
namestring or null

Name of the location.

Example:"Head Office"
locationIDstring or null

Unique location identifier.

Example:"LOC123"
dateOfOpeningstring or null, (date-time)

The date when the location was opened.

Example:"2020-01-01"
dateOfClosingstring or null, (date-time)

The date when the location was closed (if applicable).

Example:"2025-12-31"
locationStatusIdinteger or null, (int32)

ID representing the status of the location.

Example:1
locationStatusNamestring or null

Name of the location's status.

Example:"Active"
companyIdinteger or null, (int32)

ID of the company the location belongs to.

Example:101
companyNamestring or null

The name of the company.

Example:"Tech Innovations Ltd."
countryIdinteger or null, (int32)

ID of the country the location is in.

Example:10
countryNamestring or null

The name of the country.

Example:"United States"
addressstring or null

Address of the location.

Example:"123 Main St, Suite 100"
zipCodestring or null

Zip code for the location's address.

Example:"12345"
companyTypeIdinteger or null, (int32)

ID of the company type.

Example:2
companyTypeNamestring or null

Name of the company type.

Example:"Software"
locationTypeIdinteger or null, (int32)

ID representing the type of location.

Example:3
locationTypeNamestring or null

Name of the location type.

Example:"Headquarter"
locationSubTypeIdinteger or null, (int32)

ID representing the subtype of location.

Example:5
locationSubTypeNamestring or null

Name of the location subtype.

Example:"Research Facility"
]
Response
[ { "id": 1, "name": "Head Office", "locationID": "LOC123", "dateOfOpening": "2020-01-01", "dateOfClosing": "2025-12-31", "locationStatusId": 1, "locationStatusName": "Active", "companyId": 101, "companyName": "Tech Innovations Ltd.", "countryId": 10, "countryName": "United States", "address": "123 Main St, Suite 100", "zipCode": "12345", "companyTypeId": 2, "companyTypeName": "Software", "locationTypeId": 3, "locationTypeName": "Headquarter", "locationSubTypeId": 5, "locationSubTypeName": "Research Facility" } ]