Locations

View locations

GET
/locations

This endpoint returns the institutions accessible to the caller, each with its nested list of locations. Pass subdomain to scope the response to a single institution.

Authorization

Authorization
Authorization<token>

In: header

Query Parameters

subdomain?string

Used to scope the request to the specified institution

inactive?boolean

Filter by inactive status

foreign_id?string

Find location by the integrated system ID

Header Parameters

Nex-Api-Version*string

The NexHealth API version

Default"v3.0.0"

Response Body

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

application/vnd.Nexhealth+json;version=2

curl -X GET "https://example.com/locations?inactive=false&foreign_id=1" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": [    {      "id": 1,      "name": "General Practice - Dr. P. Sherman DDS",      "subdomain": "example-subdomain",      "locations": [        {          "id": 7,          "name": "Default",          "institution_id": 1,          "street_address": "123 Law St",          "street_address_2": "85335, North East",          "city": "New York",          "state": "NY",          "zip_code": "54700",          "country_code": "US",          "created_at": "2020-06-05T20:16:57.007Z",          "updated_at": "2020-06-05T20:16:57.007Z",          "latitude": 37.7775028,          "longitude": -122.3970603,          "phone_number": "8888750851",          "foreign_id": "1",          "foreign_id_type": "--DataSource-",          "email": "defaultLocation@nexhealth.com",          "tz": "America/Los_Angeles",          "last_sync_time": "2020-06-17T19:23:49.176Z",          "insert_appt_client": true,          "map_by_operatory": true,          "set_availability_by_operatory": false,          "inactive": false,          "specialty": {            "id": 0,            "name": "string"          }        }      ]    }  ],  "count": 2}