GET Locations/{id}
Gets a location by it's ID, represented as LocationDto.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The ID of the location. |
globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
The location data.
LocationDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| NetworkId | globally unique identifier |
None. |
|
| Code | string |
None. |
|
| Street1 | string |
None. |
|
| Street2 | string |
None. |
|
| City | string |
None. |
|
| ZipCode | string |
None. |
|
| StateId | globally unique identifier |
None. |
|
| StateDescription | string |
None. |
|
| CountryId | globally unique identifier |
None. |
|
| ContactName | string |
None. |
|
| ContactPhoneNumber | string |
None. |
|
| CountryDescription | string |
None. |
|
| LocationsIdentificationsTypesModels | Collection of LocationIdentificationTypeModelDto |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "762da075-798b-41db-9fdc-3f680af324e3",
"NetworkId": "c9959d59-24e8-4afc-8a40-af5c042aa4ec",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "cdf7f385-814b-48c7-9ee7-47ddfb4a289d",
"StateDescription": "sample string 9",
"CountryId": "472eb704-351a-440c-92fd-1feb5ca64a28",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "05a41ae2-e81d-4456-846d-52987faa2366",
"IdentificationTypeModelId": "6f047b46-0a67-48d8-b8e6-55362fc2cb67",
"IdentificationType": 64
},
{
"LocationId": "05a41ae2-e81d-4456-846d-52987faa2366",
"IdentificationTypeModelId": "6f047b46-0a67-48d8-b8e6-55362fc2cb67",
"IdentificationType": 64
}
]
}
application/xml, text/xml
Sample:
<LocationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
<City>sample string 6</City>
<Code>sample string 3</Code>
<ContactName>sample string 11</ContactName>
<ContactPhoneNumber>sample string 12</ContactPhoneNumber>
<CountryDescription>sample string 13</CountryDescription>
<CountryId>472eb704-351a-440c-92fd-1feb5ca64a28</CountryId>
<Id>762da075-798b-41db-9fdc-3f680af324e3</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>6f047b46-0a67-48d8-b8e6-55362fc2cb67</IdentificationTypeModelId>
<LocationId>05a41ae2-e81d-4456-846d-52987faa2366</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>6f047b46-0a67-48d8-b8e6-55362fc2cb67</IdentificationTypeModelId>
<LocationId>05a41ae2-e81d-4456-846d-52987faa2366</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>c9959d59-24e8-4afc-8a40-af5c042aa4ec</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>cdf7f385-814b-48c7-9ee7-47ddfb4a289d</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>