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": "a70dbd57-b791-4190-abbe-4e092374bd3c",
"NetworkId": "37ef59a1-2ebf-4a4d-a616-ce37608113a2",
"Code": "sample string 3",
"Street1": "sample string 4",
"Street2": "sample string 5",
"City": "sample string 6",
"ZipCode": "sample string 7",
"StateId": "e99db8e1-8d05-4671-ab0c-0d1f5bfe7e2d",
"StateDescription": "sample string 9",
"CountryId": "6d9d875d-0396-4349-94e2-ec1a27f6b646",
"ContactName": "sample string 11",
"ContactPhoneNumber": "sample string 12",
"CountryDescription": "sample string 13",
"LocationsIdentificationsTypesModels": [
{
"LocationId": "e96c815c-a1cd-478f-b9b0-48c4ece50740",
"IdentificationTypeModelId": "42bfe86e-cd98-4259-9bda-e1d32cd151b5",
"IdentificationType": 64
},
{
"LocationId": "e96c815c-a1cd-478f-b9b0-48c4ece50740",
"IdentificationTypeModelId": "42bfe86e-cd98-4259-9bda-e1d32cd151b5",
"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>6d9d875d-0396-4349-94e2-ec1a27f6b646</CountryId>
<Id>a70dbd57-b791-4190-abbe-4e092374bd3c</Id>
<LocationsIdentificationsTypesModels>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>42bfe86e-cd98-4259-9bda-e1d32cd151b5</IdentificationTypeModelId>
<LocationId>e96c815c-a1cd-478f-b9b0-48c4ece50740</LocationId>
</LocationIdentificationTypeModelDto>
<LocationIdentificationTypeModelDto>
<IdentificationType>64</IdentificationType>
<IdentificationTypeModelId>42bfe86e-cd98-4259-9bda-e1d32cd151b5</IdentificationTypeModelId>
<LocationId>e96c815c-a1cd-478f-b9b0-48c4ece50740</LocationId>
</LocationIdentificationTypeModelDto>
</LocationsIdentificationsTypesModels>
<NetworkId>37ef59a1-2ebf-4a4d-a616-ce37608113a2</NetworkId>
<StateDescription>sample string 9</StateDescription>
<StateId>e99db8e1-8d05-4671-ab0c-0d1f5bfe7e2d</StateId>
<Street1>sample string 4</Street1>
<Street2>sample string 5</Street2>
<ZipCode>sample string 7</ZipCode>
</LocationDto>