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": "35069c9a-2805-4623-ab75-36d9baf17864",
"NetworkId": "67e7ad80-c811-4b8a-8821-85a2e7e6a9ae",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "c506d999-416f-4fd2-aba5-429e8667654d",
"StateDescription": "sample string 9",
"CountryId": "b6eb9b75-94aa-450b-bd98-8e197229728b",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "80eed3b9-3eff-4098-87ab-6af327d6fcd4",
"IdentificationTypeModelId": "7deadcbe-9c76-40f7-bbfa-9c5e990ee640",
"IdentificationType": 64
},
{
"LocationId": "80eed3b9-3eff-4098-87ab-6af327d6fcd4",
"IdentificationTypeModelId": "7deadcbe-9c76-40f7-bbfa-9c5e990ee640",
"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>b6eb9b75-94aa-450b-bd98-8e197229728b</CountryId>
<Id>35069c9a-2805-4623-ab75-36d9baf17864</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>7deadcbe-9c76-40f7-bbfa-9c5e990ee640</IdentificationTypeModelId>
<LocationId>80eed3b9-3eff-4098-87ab-6af327d6fcd4</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>7deadcbe-9c76-40f7-bbfa-9c5e990ee640</IdentificationTypeModelId>
<LocationId>80eed3b9-3eff-4098-87ab-6af327d6fcd4</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>67e7ad80-c811-4b8a-8821-85a2e7e6a9ae</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>c506d999-416f-4fd2-aba5-429e8667654d</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>