GET v2/Clients/{clientId}/Facilities?updatedSinceUtc={updatedSinceUtc}&facilityIds={facilityIds}&includeDeleted={includeDeleted}
Gets all active facilities.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| clientId |
Client identifier. |
globally unique identifier |
Required |
| updatedSinceUtc |
Date since facility was last updated. |
date |
None. |
| facilityIds |
Facility identifiers in CSV format. |
string |
None. |
| includeDeleted |
If deleted facilities should be included. |
boolean |
None. |
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": "77523a1b-3b3f-4e0b-96a6-81668558f69a",
"Id": 580624434,
"Name": "Sample Facility",
"SiteNumber": "1234567",
"DisplayName": "Sample Facility",
"FacilityStatusReferenceId": 580624434,
"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": "ae074e08-17ed-4f7e-bf25-2850c3345c41",
"Id": 580624434,
"Name": null,
"SiteNumber": "987654",
"DisplayName": "(987654)",
"FacilityStatusReferenceId": 580624434,
"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.