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": "1e8aac46-43eb-4ab2-aa5f-e85ee295be07",
"NetworkId": "53807f46-3d19-4534-b9f8-a41577412002",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "96dd89a9-906e-4706-a402-a89e5f4c8cc0",
"StateDescription": "sample string 9",
"CountryId": "bdbaaa76-22ae-42da-aee8-25df776d3cf1",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "3c4a73ca-a5ed-4563-9e0f-902f92df748e",
"IdentificationTypeModelId": "34bb0963-a471-46b4-a64d-27a2e6f16058",
"IdentificationType": 64
},
{
"LocationId": "3c4a73ca-a5ed-4563-9e0f-902f92df748e",
"IdentificationTypeModelId": "34bb0963-a471-46b4-a64d-27a2e6f16058",
"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>bdbaaa76-22ae-42da-aee8-25df776d3cf1</CountryId>
<Id>1e8aac46-43eb-4ab2-aa5f-e85ee295be07</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>34bb0963-a471-46b4-a64d-27a2e6f16058</IdentificationTypeModelId>
<LocationId>3c4a73ca-a5ed-4563-9e0f-902f92df748e</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>34bb0963-a471-46b4-a64d-27a2e6f16058</IdentificationTypeModelId>
<LocationId>3c4a73ca-a5ed-4563-9e0f-902f92df748e</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>53807f46-3d19-4534-b9f8-a41577412002</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>96dd89a9-906e-4706-a402-a89e5f4c8cc0</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>