GET api/units/{unitId}/address
Get Unit Address
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| unitId |
Unit id |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Unit Address
AddressBaseViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Address1 |
|
string |
None. |
| Address2 |
|
string |
None. |
| City |
|
string |
None. |
| State |
|
string |
None. |
| ZipCode |
|
string |
None. |
| Country |
|
string |
Required |
Response Formats
application/json, text/json
Sample:
{
"address1": "sample string 1",
"address2": "sample string 2",
"city": "sample string 3",
"state": "sample string 4",
"zipCode": "sample string 5",
"country": "sample string 6"
}
application/xml, text/xml
Sample:
<AddressBaseViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CamAcctApi.ViewModels.Address"> <Address1>sample string 1</Address1> <Address2>sample string 2</Address2> <City>sample string 3</City> <Country>sample string 6</Country> <State>sample string 4</State> <ZipCode>sample string 5</ZipCode> </AddressBaseViewModel>