SearchTourPackages

Version 7.1 by Giorgi Mdivnishvili on 2023/12/15 12:20

Method Description

The initial method of the integration process is authorization. You will be provided with a test user username and password to generate the access token that you will need to pass in all the following methods. 

Endpoint URL - [POST]

Information
asdasdasd

Request Parameters

None

Request Body

{
 "departureCountryCode": "string",
 "departureCityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
 "arrivalCountryCode": "string",
 "arrivalLocations": [
    {
     "type": "string",
     "parent": "string",
     "label": "string",
     "subLabel": "string",
     "value": "string",
     "tag": "string"
    }
  ],
 "checkInDate": "2023-12-14T13:43:54.766Z",
 "checkInDateTo": "2023-12-14T13:43:54.766Z",
 "checkOutDate": "2023-12-14T13:43:54.766Z",
 "stayDays": 0,
 "stayDaysTo": 0,
 "departureDate": "2023-12-14T13:43:54.766Z",
 "returnDate": "2023-12-14T13:43:54.766Z",
 "airlineCode": "string",
 "ticketType": "string",
 "directFlightsOnly": true,
 "longConnectTime": true,
 "adults": 0,
 "children": 0,
 "childrenAges": [
   0
  ],
 "extendedSearch": true,
 "totalPriceFrom": 0,
 "totalPriceTo": 0,
 "recommended": true,
 "popular": true,
 "freeSale": true,
 "groupByHotel": true,
 "hotelCodes": [
   "string"
  ],
 "mealPlans": [
   "string"
  ],
 "hotelClasses": [
   "string"
  ],
 "hotelTypes": [
   "CityHotel"
  ],
 "hotelServices": [
   "HasAlcohol"
  ],
 "pagingId": "string",
 "pageNumber": 0,
 "pageRowCount": 0
}

Response Body

{
 "error": true,
 "errorCode": "string",
 "errorDescription": "string",
 "userErrorDescription": "string",
 "packages": [
    {
     "cacheKey": "string",
     "id": "string",
     "priceCurrency": "string",
     "totalPrice": 0,
     "agentCommissionPercent": 0,
     "agentCommissionAmount": 0,
     "includedExtrasAmount": 0,
     "priceDifference": 0,
     "hotel": {
       "hotelPriceId": "string",
       "providerId": 0,
       "hotelName": "string",
       "hotelCode": "string",
       "nigths": 0,
       "mealPlan": "string",
       "hotelClass": "string",
       "availabilityType": "OnRequest",
       "availableRoomsCount": 0,
       "fewRooms": true,
       "roomCategoryCode": "string",
       "roomCategoryName": "string",
       "placementTypeName": "string",
       "placementDescription": "string",
       "checkInDate": "2023-12-14T13:47:13.396Z",
       "checkOutDate": "2023-12-14T13:47:13.396Z",
       "adults": 0,
       "children": 0,
       "districtUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
       "districtName": "string",
       "cityUID": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
       "cityName": "string",
       "countryCode": "string",
       "countryName": "string",
       "hasAlcohol": true,
       "hasFreeWifi": true,
       "hasMetro": true,
       "hasPool": true,
       "hasMall": true,
       "cancellationPolicyDescription": "string",
       "cancellationPolicy": {
         "cancellationPolicyCode": "string",
         "noShowChargeValue": 0,
         "noShowChargeValueType": "string",
         "earlyDepartureChargeValue": 0,
         "earlyDepartureChargeValueType": "string",
         "conditions": [
            {
             "timeunits": 0,
             "timeunitType": "string",
             "timeOffsetTypeName": "string",
             "chargeValue": 0,
             "chargeValueType": "string"
            }
          ]
        }
      },
     "flight": {
       "id": "string",
       "departureDate": "2023-12-14T13:47:13.396Z",
       "returnDate": "2023-12-14T13:47:13.396Z",
       "departureTicketsLeft": 0,
       "returnTicketsLeft": 0,
       "departureAvailabilityType": "OnRequest",
       "returnAvailabilityType": "OnRequest",
       "isTwoWay": true,
       "departureSegments": [
          {
           "airlineCode": "string",
           "airlineName": "string",
           "flightCode": "string",
           "class": "string",
           "lugageWeight": 0,
           "handLugageWeight": 0,
           "departureFlightDate": "2023-12-14T13:47:13.396Z",
           "departureCountryName": "string",
           "departureCityName": "string",
           "departureAirportCode": "string",
           "departureAirportName": "string",
           "departureTerminalCode": "string",
           "arrivalFlightDate": "2023-12-14T13:47:13.396Z",
           "arrivalCountryName": "string",
           "arrivalCityName": "string",
           "arrivalAirportCode": "string",
           "arrivalAirportName": "string",
           "arrivalTerminalCode": "string",
           "flightDuration": "string",
           "baggages": [
              {
               "baggageCode": "string",
               "description": "string",
               "price": 0,
               "currency": "string",
               "included": true
              }
            ]
          }
        ],
       "returnSegments": [
          {
           "airlineCode": "string",
           "airlineName": "string",
           "flightCode": "string",
           "class": "string",
           "lugageWeight": 0,
           "handLugageWeight": 0,
           "departureFlightDate": "2023-12-14T13:47:13.396Z",
           "departureCountryName": "string",
           "departureCityName": "string",
           "departureAirportCode": "string",
           "departureAirportName": "string",
           "departureTerminalCode": "string",
           "arrivalFlightDate": "2023-12-14T13:47:13.396Z",
           "arrivalCountryName": "string",
           "arrivalCityName": "string",
           "arrivalAirportCode": "string",
           "arrivalAirportName": "string",
           "arrivalTerminalCode": "string",
           "flightDuration": "string",
           "baggages": [
              {
               "baggageCode": "string",
               "description": "string",
               "price": 0,
               "currency": "string",
               "included": true
              }
            ]
          }
        ]
      },
     "extraServices": [
        {
         "extraServiceCode": "string",
         "extraServiceTypeCode": "string",
         "isMandatory": 0,
         "extraServiceName": "string",
         "minimalServiceAmount": 0,
         "includedPriceCode": "string",
         "prices": [
            {
             "extraServicePriceCode": "string",
             "displayName": "string",
             "restrictionInfo": "string",
             "additionalInfo": "string",
             "price": 0,
             "extraPrice": 0,
             "currency": "string"
            }
          ]
        }
      ],
     "insurancePrice": {
       "name": "string",
       "price": 0,
       "priceSurcarge": 0,
       "actualStartDate": "2023-12-14T13:47:13.396Z",
       "actualEndDate": "2023-12-14T13:47:13.396Z",
       "optional": true,
       "includedInPackagePrice": true
      }
    }
  ],
 "pagingId": "string",
 "pageNumber": 0,
 "pageCount": 0
}

example

X

Schema

SearchTourPackagesResponse{
error boolean
errorCode string
nullable: true
errorDescription string
nullable: true
userErrorDescription string
nullable: true
packages [
nullable: true
TourPackage{
cacheKey string
nullable: true
id string
nullable: true
priceCurrency string
nullable: true
totalPrice number($double)
agentCommissionPercent number($double)
agentCommissionAmount number($double)
includedExtrasAmount number($double)
priceDifference number($double)
hotel PackageHotel{
hotelPriceId string
nullable: true
providerId integer($int32)
hotelName string
nullable: true
hotelCode string
nullable: true
nigths integer($int32)
mealPlan string
nullable: true
hotelClass string
nullable: true
availabilityType RoomAvailabilityTypeEnum[...]
availableRoomsCount integer($int32)
fewRooms boolean
roomCategoryCode string
nullable: true
roomCategoryName string
nullable: true
placementTypeName string
nullable: true
placementDescription string
nullable: true
checkInDate string($date-time)
checkOutDate string($date-time)
adults integer($int32)
children integer($int32)
districtUID string($uuid)
nullable: true
districtName string
nullable: true
cityUID string($uuid)
nullable: true
cityName string
nullable: true
countryCode string
nullable: true
countryName string
nullable: true
hasAlcohol boolean
hasFreeWifi boolean
hasMetro boolean
hasPool boolean
hasMall boolean
cancellationPolicyDescription string
nullable: true
cancellationPolicy CancellationPolicyExchange{
cancellationPolicyCode string
nullable: true
noShowChargeValue number($double)
nullable: true
noShowChargeValueType string
nullable: true
earlyDepartureChargeValue number($double)
nullable: true
earlyDepartureChargeValueType string
nullable: true
conditions [
nullable: true
CancellationPolicyConditionExchange{
timeunits integer($int32)
timeunitType string
nullable: true
timeOffsetTypeName string
nullable: true
chargeValue number($double)
nullable: true
chargeValueType string
nullable: true
}]
}
}
flight PackageFlight{
id string
nullable: true
departureDate string($date-time)
returnDate string($date-time)
nullable: true
departureTicketsLeft integer($int32)
returnTicketsLeft integer($int32)
departureAvailabilityType FlightAvailabilityTypestring
Enum:
[ OnRequest, FreeSale, FewPlaces, StopSale ]
returnAvailabilityType FlightAvailabilityTypestring
Enum:
[ OnRequest, FreeSale, FewPlaces, StopSale ]
isTwoWay boolean
departureSegments [
nullable: true
FlightSegment{
airlineCode string
nullable: true
airlineName string
nullable: true
flightCode string
nullable: true
class string
nullable: true
lugageWeight number($double)
handLugageWeight number($double)
departureFlightDate string($date-time)
departureCountryName string
nullable: true
departureCityName string
nullable: true
departureAirportCode string
nullable: true
departureAirportName string
nullable: true
departureTerminalCode string
nullable: true
arrivalFlightDate string($date-time)
arrivalCountryName string
nullable: true
arrivalCityName string
nullable: true
arrivalAirportCode string
nullable: true
arrivalAirportName string
nullable: true
arrivalTerminalCode string
nullable: true
flightDuration string
nullable: true
baggages [
nullable: true
Baggage{
baggageCode string
nullable: true
description string
nullable: true
price number($double)
currency string
nullable: true
included boolean
}]
}]
returnSegments [
nullable: true
FlightSegment{
airlineCode string
nullable: true
airlineName string
nullable: true
flightCode string
nullable: true
class string
nullable: true
lugageWeight number($double)
handLugageWeight number($double)
departureFlightDate string($date-time)
departureCountryName string
nullable: true
departureCityName string
nullable: true
departureAirportCode string
nullable: true
departureAirportName string
nullable: true
departureTerminalCode string
nullable: true
arrivalFlightDate string($date-time)
arrivalCountryName string
nullable: true
arrivalCityName string
nullable: true
arrivalAirportCode string
nullable: true
arrivalAirportName string
nullable: true
arrivalTerminalCode string
nullable: true
flightDuration string
nullable: true
baggages [
nullable: true
Baggage{
baggageCode string
nullable: true
description string
nullable: true
price number($double)
currency string
nullable: true
included boolean
}]
}]
}
extraServices [
nullable: true
HotelExtraServiceBase{
extraServiceCode string
nullable: true
extraServiceTypeCode string
nullable: true
isMandatory integer($int32)
extraServiceName string
nullable: true
minimalServiceAmount number($double)
includedPriceCode string
nullable: true
prices [
nullable: true
HotelExtraServicePriceBase{
extraServicePriceCode string
nullable: true
displayName string
nullable: true
restrictionInfo string
nullable: true
additionalInfo string
nullable: true
price number($double)
extraPrice number($double)
currency string
nullable: true
}]
}]
insurancePrice InsurancePrice{
name string
nullable: true
price number($double)
priceSurcarge number($double)
actualStartDate string($date-time)
actualEndDate string($date-time)
optional boolean
includedInPackagePrice boolean
}
}]
pagingId string
nullable: true
pageNumber integer($int64)
pageCount integer($int64)
}