Operations on Destinations


Get Destination List

Description

Returns the information associated of the Destinations with the specified country id.

Request

URI

https://api.pricetravel.com/services/catalogs/countries/{countryId}/destinations[/{destinationId}]

Verb

GET

Headers

Accept (optional)

Response

Response code

200 (OK)

XML

<Country xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PriceTravel.Api.Model.External">
<CountryCode>string</CountryCode>
<Name>string</Name>
<Uri>string</Uri>
<Destinations>
<Destination>
<Airports>
<Airport>
<Code>string</Code>
<CountryCode>string</CountryCode>
<CountryName>string</CountryName>
<DestinationId>integer</DestinationId>
<Name>string</Name>
<CityName>string</CityName>
</Airport>
</Airports>
<CountryCode>string</CountryCode>
<CountryName>string</CountryName>
<Id>integer</Id>
<IsActive>boolean</IsActive>
<Type>integer(3 - Destination, 6 - City)</Type>
<Name>string</Name>
</Destination>
</Destinations>
</Country>

JSON

{
    "CountryCode": string,
    "Name": string,
    "Uri": string,
    "Destinations": [
        {
            "Id": integer,
            "Name": string,
            "IsActive": boolean,
            "CountryCode": string,
            "CountryName": string,
            "Type": integer (3 - Destination, 6 - City),
            "Airports": [
                {
                    "Code": string,
                    "Name": string,
                    "CityName": string,
                    "CountryCode": string,
                    "CountryName": string,
                    "DestinationId": integer
                }
            ]
        }
    ]
}

Search for destinations

Description

Returns the information associated of the Destinations with the specified query.

Request

URI

https://api.pricetravel.com/services/catalogs/destinations

Verb

GET

Parameters

Headers

Accept (optional)

Response

Response code

200 (OK)

XML

<ArrayOfDestination xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PriceTravel.Api.Model.External">
   <Destination>
      <Airports />
      <CountryCode>string</CountryCode>
      <CountryName>string</CountryName>
      <Id>integer</Id>
      <IsActive>boolean</IsActive>
      <Name>string</Name>
      <Type>integer (3 - Destination, 6 - City)</Type>
   </Destination>
</ArrayOfDestination>

JSON

[
   {
      "Id": integer,
      "Name": string,
      "IsActive": boolean,
      "CountryCode": string,
      "CountryName": string,
      "Type": integer (3 - Destination, 6 - City)
   }
   ]