GET v1/Clients/{clientId}/Facilities
Gets all active facilities.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| clientId |
Client identifier. |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
A list.
Collection of FacilityV1| Name | Description | Type | Additional information |
|---|---|---|---|
| ClientId |
The client id. |
globally unique identifier |
None. |
| Id |
The facility id. |
integer |
None. |
| Name |
The facility name. |
string |
None. |
| SiteNumber |
The facility site number. Note, this field is commonly used as an alternative name for the Facility and its usage varies for each client. |
string |
None. |
| DisplayName |
The facility display name. This will return Name if populated, otherwise will return SiteNumber in parenthesis (i.e. (123456)). |
string |
None. |
| FacilityStatusReferenceId |
The facility status. Valid values include can be retrieved from v1/Clients/{clientId}/References?type=FacilityStatus. |
integer |
None. |
| Address1 |
The address line 1. |
string |
None. |
| Address2 |
The address line 2. |
string |
None. |
| City |
The city. |
string |
None. |
| StateProvinceCode |
The state/province. Valid values can be retrieved from v1/Common/StateProvinceCodes?country={country}. |
string |
None. |
| PostalCode |
The postal code. |
string |
None. |
| CountryCode |
The country code. Valid values can be retrieved from v1/Common/CountryCodes. |
string |
None. |
| PhoneNumber |
The phone number. |
string |
None. |
| EmailAddress |
The email address. |
string |
None. |
| StateID |
The state id number. |
string |
None. |
Response Formats
application/json, text/json
[
{
"ClientId": "32f8ba2c-5216-492b-819c-2ffe99824808",
"Id": 721932376,
"Name": "Sample Facility",
"SiteNumber": "1234567",
"DisplayName": "Sample Facility",
"FacilityStatusReferenceId": 721932376,
"Address1": "4031 Aspen Grove, Suite 240",
"Address2": null,
"City": "Franklin",
"StateProvinceCode": "TN",
"PostalCode": "37067",
"CountryCode": "US",
"PhoneNumber": "(555) 555-5555",
"EmailAddress": "sample@email.com",
"StateID": "2222222"
},
{
"ClientId": "5589a9a9-a599-40c2-bc75-6339a2edf87b",
"Id": 721932376,
"Name": null,
"SiteNumber": "987654",
"DisplayName": "(987654)",
"FacilityStatusReferenceId": 721932376,
"Address1": "123 Main St.",
"Address2": null,
"City": "Nashville",
"StateProvinceCode": "TN",
"PostalCode": "37027",
"CountryCode": "US",
"PhoneNumber": "(555) 555-5555",
"EmailAddress": "ts2025@email.com",
"StateID": "2222222"
}
]
application/xml
Sample not available.
text/xml
Sample not available.