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": "42722704-f79e-4505-9894-9cac072e3ae5",
"NetworkId": "45ce6d2a-3222-4fef-9977-e2558a6af560",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "645b6121-b8e6-4346-b282-8c2d2836be7e",
"StateDescription": "sample string 9",
"CountryId": "e2038ba9-8d5a-47c5-8000-1284957e1d1a",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "85404383-72e1-41d6-8f52-386bc4eac464",
"IdentificationTypeModelId": "417fba14-3ce6-45b0-9d93-b6cc0a60e8a6",
"IdentificationType": 64
},
{
"LocationId": "85404383-72e1-41d6-8f52-386bc4eac464",
"IdentificationTypeModelId": "417fba14-3ce6-45b0-9d93-b6cc0a60e8a6",
"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>e2038ba9-8d5a-47c5-8000-1284957e1d1a</CountryId>
<Id>42722704-f79e-4505-9894-9cac072e3ae5</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>417fba14-3ce6-45b0-9d93-b6cc0a60e8a6</IdentificationTypeModelId>
<LocationId>85404383-72e1-41d6-8f52-386bc4eac464</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>417fba14-3ce6-45b0-9d93-b6cc0a60e8a6</IdentificationTypeModelId>
<LocationId>85404383-72e1-41d6-8f52-386bc4eac464</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>45ce6d2a-3222-4fef-9977-e2558a6af560</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>645b6121-b8e6-4346-b282-8c2d2836be7e</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>