Locations

View location

GET
/locations/{id}

This endpoint returns a single location by its NexHealth ID.

Authorization

Authorization
Authorization<token>

In: header

Path Parameters

id*integer

The NexHealth location ID

Formatint32

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/0" \  -H "Nex-Api-Version: v3.0.0"
{  "code": false,  "description": "Description",  "error": [    "Error message"  ],  "data": {    "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}