GET api/site/{id}
This API method returns details of the specified Site.
Error Messages
404/NotFound: Site with id = X not found -The specified ID is not assigned to any sites
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | The unique identifier for the Site being queried. | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
SiteView| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | The unique identifier for the site. | integer |
None. |
| CompanyId | The unique identifier of the parent company. | integer |
None. |
| BillingAddress | The site ID of the billing site i.e. any billable items for this site will be invoiced to the billing site. | integer |
None. |
| CustomProperties | Custom controls created with the Service Designer | Collection of EntityCustomPropertyView |
None. |
| BillRunIDLocal | Site Bill Run ID | integer |
None. |
| BillRunNameLocal | Site Bill Run Name | string |
None. |
| BillRunIDInherited | Default Bill Run ID | integer |
None. |
| BillRunNameInherited | Default Bill Run Name | string |
None. |
| LastUpdated | The date and time the CLI has been updated | date |
None. |
| SiteName | The name for the site. | string |
Required String length: inclusive between 0 and 255 |
| ShortName | A reference name for the site. | string |
Required String length: inclusive between 0 and 255 |
| Address | Address information for the site. | string |
String length: inclusive between 0 and 255 |
| Town | Address information for the site. | string |
String length: inclusive between 0 and 50 |
| County | Address Information for the site. | string |
String length: inclusive between 0 and 50 |
| PostCode | The Postcode for the site. | string |
String length: inclusive between 0 and 20 |
| Fax | The main fax number for the site. | string |
String length: inclusive between 0 and 30 |
| Telephone | The main telephone number for the site. | string |
String length: inclusive between 0 and 30 |
| MainSite | The site is the main site for the Company. | boolean |
None. |
| AccountRef | The Account Reference number | string |
String length: inclusive between 0 and 30 |