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.
LocationDtoName | 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": "2c098b5f-53ba-4e24-b69e-0fb3deac211d", "NetworkId": "b0943de5-5fbd-4652-ba71-5226391a75f0", "Code": "sample string 3", "Street1": "sample string 4", "Street2": "sample string 5", "City": "sample string 6", "ZipCode": "sample string 7", "StateId": "3d77e130-a203-41d5-9288-b4359bcfc044", "StateDescription": "sample string 9", "CountryId": "26e7dba2-56ee-4778-b12b-acb073d5f745", "ContactName": "sample string 11", "ContactPhoneNumber": "sample string 12", "CountryDescription": "sample string 13", "LocationsIdentificationsTypesModels": [ { "LocationId": "cac3717f-2b0c-4a76-9a6f-b92b212437c2", "IdentificationTypeModelId": "7d923164-7fae-4976-b1a4-9ee5f250d457", "IdentificationType": 64 }, { "LocationId": "cac3717f-2b0c-4a76-9a6f-b92b212437c2", "IdentificationTypeModelId": "7d923164-7fae-4976-b1a4-9ee5f250d457", "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>26e7dba2-56ee-4778-b12b-acb073d5f745</CountryId> <Id>2c098b5f-53ba-4e24-b69e-0fb3deac211d</Id> <LocationsIdentificationsTypesModels> <LocationIdentificationTypeModelDto> <IdentificationType>64</IdentificationType> <IdentificationTypeModelId>7d923164-7fae-4976-b1a4-9ee5f250d457</IdentificationTypeModelId> <LocationId>cac3717f-2b0c-4a76-9a6f-b92b212437c2</LocationId> </LocationIdentificationTypeModelDto> <LocationIdentificationTypeModelDto> <IdentificationType>64</IdentificationType> <IdentificationTypeModelId>7d923164-7fae-4976-b1a4-9ee5f250d457</IdentificationTypeModelId> <LocationId>cac3717f-2b0c-4a76-9a6f-b92b212437c2</LocationId> </LocationIdentificationTypeModelDto> </LocationsIdentificationsTypesModels> <NetworkId>b0943de5-5fbd-4652-ba71-5226391a75f0</NetworkId> <StateDescription>sample string 9</StateDescription> <StateId>3d77e130-a203-41d5-9288-b4359bcfc044</StateId> <Street1>sample string 4</Street1> <Street2>sample string 5</Street2> <ZipCode>sample string 7</ZipCode> </LocationDto>