GET api/units/carecenterunits?email={email}&mobile={mobile}

Returns all units linked to a particular email address or phone number.

Request Information

Authentication

This method requires device authentication

URI Parameters

NameDescriptionTypeAdditional information
email

One of email or mobile is required.

string

mobile

One of email or mobile is required.

string

Body Parameters

None.

Response Information

Resource Description

ListWrapperOfCareCenterUnit
NameDescriptionTypeAdditional information
Total

integer

None.

Elements

Collection of CareCenterUnit

None.

Response Formats

application/json, text/json

Sample:
{
  "Total": 1,
  "Elements": [
    {
      "ConnectUnitId": 1,
      "ConnectPropertyId": 2,
      "ConnectResidentId": 3,
      "ResidentType": "sample string 4",
      "ResidentFirstName": "sample string 5",
      "ResidentLastName": "sample string 6",
      "C4UID": "sample string 7",
      "PropertyName": "sample string 8",
      "EmailAddress": "sample string 9",
      "PhoneNumber": "sample string 10",
      "UnitNumber": "sample string 11",
      "Address1": "sample string 12",
      "Address2": "sample string 13",
      "City": "sample string 14",
      "State": "sample string 15",
      "ZipCode": "sample string 16",
      "Country": "sample string 17"
    },
    {
      "ConnectUnitId": 1,
      "ConnectPropertyId": 2,
      "ConnectResidentId": 3,
      "ResidentType": "sample string 4",
      "ResidentFirstName": "sample string 5",
      "ResidentLastName": "sample string 6",
      "C4UID": "sample string 7",
      "PropertyName": "sample string 8",
      "EmailAddress": "sample string 9",
      "PhoneNumber": "sample string 10",
      "UnitNumber": "sample string 11",
      "Address1": "sample string 12",
      "Address2": "sample string 13",
      "City": "sample string 14",
      "State": "sample string 15",
      "ZipCode": "sample string 16",
      "Country": "sample string 17"
    }
  ]
}

Internal Error Codes

  • 106: ResourceNotFound
    (The requested resource was not found., NotFound)
  • 100: MissingRequiredHeader
    (Invalid request format. A required HTTP header was not specified., BadRequest)
  • 118: InvalidHeaderValue
    (The value provided for one of the HTTP headers was not in the correct format., BadRequest)
  • 199: UnknownError
    (Internal server error., InternalServerError)
  • 105: ResourceNotLinkedToUser
    (User is trying to access a resource that belongs to a property not linked to the user., Forbidden)