Get Availability

The Availability Request message requests Flight Availability for a city pair on a specific date for a specific number and type of passengers. Calendar with best price of each day in a week and full flight list with their price depending on cabin will be provided.

 

Input

Name Description Type Required

ReducedDataIndicator

Default ‘false’ If it is true, prices are not returned in response, only availability. Boolean Yes

RoutingType

‘O’ for one way ‘R’ for round trip ‘M’ for multicity String Yes

TargetSource

If it is award ticket request, this should be added to request. String (AWT) No

PassengerTypeQuantity

Name Description Type Required

Code

PassengerType Code (adult, child, infant) String Yes

Quantity

Number of that passenger type Integer Yes

OriginDestinationInformation.DepartureDateTime

Name Description Type Required

WindowAfter

How many days should be return after departure date. (If it is P3D, 3 days of availability will be returned briefly. If it is P0D, only that day in departureDateTime will be returned with all flights.) String (P0D, P3D) Yes

WindowBefore

How many days should be return before departure date. (If it is P3D, 3 days of availability before DepartureDateTime will be returned briefly. If it is P0D, only that day in departureDateTime will be returned with all flights.) String (P0D, P3D) Yes

Date

Departure day and month String (14OCT) Yes

OriginDestinationInformation.OriginLocation

Name Description Type Required

LocationCode

IATA portcode String (IST,JFK) Yes

MultiAirportCityInd

If that city has more than one airport, this should be set as true to get flights departing from all airports in that city. Boolean Yes

OriginDestinationInformation.DestinationLocation

Name Description Type Required

LocationCode

IATA portcode String (IST,JFK) Yes

MultiAirportCityInd

If that city has more than one airport, this should be set as true to get flights departing from all airports in that city. Boolean Yes

OriginDestinationInformation.CabinPreferences

Name Description Type Required

Cabin

Requested cabin type for a flight String (ECONOMY, BUSINESS) Yes

Output

availabilityOTAResponse.createOTAAirRoute.extraOTAAvailabilityInfoListType.extraOTAAvailabilityInfoList

Name Description Type

RPH

Dep-Arr cities and departure date will be shown. String

...extraOTAAvailabilityInfoList.extraOTAFlightInfoListType.extraOTAFlightInfoList

Name Description Type

isPureAnadoluJetFlight

If all flight segments are operated by Anadolujet, it will be ‘true’ String

isFullInternational

If all flight segments are international, it will be ‘true’ String

isFullCodeshare

If all flight segments are codeshare, it will be ‘true’ String

isDomestic

If all flight segments are domestic, it will be ‘true’ String

flightNumber

Flight number String

.....extraOTAFlightInfoList.bookingPriceInfoType.PTC_FareBreakdowns.PTC_FareBreakdown.FareBasisCodes

Name Description Type

FareBasisCode

It shows fare family code like EU, ER, BU. String

.....extraOTAFlightInfoList.bookingPriceInfoType.PTC_FareBreakdowns.PTC_FareBreakdown.PassengerTypeQuantity

Name Description Type

Quantity

Passenger type quantity String

Code

Passenger type code String

.....extraOTAFlightInfoList.bookingPriceInfoType.PTC_FareBreakdowns.PTC_FareBreakdown.FareInfo.FareReference

Name Description Type

ResBookDesigCode

It shows fare class of that fare family. String

content

It shows fare family code like EU, ER, BU. String

.....extraOTAFlightInfoList.bookingPriceInfoType.PTC_FareBreakdowns.PTC_FareBreakdown.PassengerFare.TotalFare

Name Description Type

CurrencyCode

It shows total fare currency. String

Amount

It shows total fare (base fare + tax) for each passenger type for quantity 1. String
h4>.....extraOTAFlightInfoList.bookingPriceInfoType.PTC_FareBreakdowns.PTC_FareBreakdown.PassengerFare.Taxes.Tax
Name Description Type

CurrencyCode

It shows tax currency code. String

Amount

It shows tax amount of each tax code for each passenger type. String

TaxCode

It shows different tax codes. String

.....extraOTAFlightInfoList.bookingPriceInfoType.PTC_FareBreakdowns.PTC_FareBreakdown.PassengerFare.BaseFare

Name Description Type

CurrencyCode

It shows base fare currency. String

Amount

It shows base fare amount for each passenger type. String

.....extraOTAFlightInfoList.bookingPriceInfoType.PTC_FareBreakdowns.PTC_FareBreakdown.PassengerFare.FareBaggageAllowance

Name Description Type

UnitOfMeasure

It shows unit of measure for baggage. String

UnitOfMeasureQuantity

It shows quantity of unit of measure for baggage. String

FlightSegmentRPH

It shows the segment that allowed for baggage.td> String

availabilityOTAResponse.createOTAAirRoute.OTA_AirAvailRS.OriginDestinationInformation

Name Description Type

DepartureDateTime

Departure Date will be shown String

ArrivalDateTime

Arrival Date will be shown String

RPH

Dep-Arr cities and departure date will be shown.td> String

...OriginDestinationInformation.OriginLocation

Name Description Type

LocationCode

Origin city code String

...OriginDestinationInformation.DestinationLocation

Name Description Type

LocationCode

Destination city code String

...OriginDestinationInformation.OriginDestinationOptions.OriginDestinationOption.FlightSegment

Name Description Type

DepartureDateTime

Departure date and time String

ArrivalDateTime

Arrival date and time String

CodeshareInd

It shows the flight is codeshare or not String

FlightNumber

Flight number String

JourneyDuration

Total flight duration including stopover waits String

StopQuantity

Count of stopover points String

......FlightSegment.DepartureAirport

Name Description Type

LocationCode

Port code String

......FlightSegment.ArrivalAirport

Name Description Type

LocationCode

Port code String

......FlightSegment.BookingClassAvail

Name Description Type

ResBookDesigQuantity

Available number of seats String

ResBookDesigStatusCode

Fare family of the class String

ResBookDesigCode

Flight class String

RPH

Pax type, cabin and flight segment number will be given. (i.e. Pax:ADT SegmentIndex:1Cabin:EU) String

......FlightSegment.Equipment

Name Description Type

Value

Equipment (i.e. AIRBUS A320-200) String

AirEquipType

Troya euipment code (i.e. 32P, 2AJ) String

......FlightSegment.OperationAirline

Name Description Type

CompanyShortName

AJ or TK String

Request

			
{
  "ReducedDataIndicator":false,
  "RoutingType":"r",
  "PassengerTypeQuantity":[
    {
      "Code":"adult",
      "Quantity":1
    },
    {
      "Code":"child",
      "Quantity":1
    },
    {
      "Code":"infant",
      "Quantity":0
    }
  ],
  "OriginDestinationInformation":[
    {
      "DepartureDateTime":{
        "WindowAfter":"P0D",
        "WindowBefore":"P0D",
        "Date":"14OCT"
      },
      "OriginLocation":{
        "LocationCode":"IST",
        "MultiAirportCityInd":false
      },
      "DestinationLocation":{
        "LocationCode":"ESB",
        "MultiAirportCityInd":false
      },
      "CabinPreferences":[
        {
          "Cabin":"ECONOMY"
        },
        {
          "Cabin":"BUSINESS"
        }
      ]
    },
    {
      "DepartureDateTime":{
        "WindowAfter":"P0D",
        "WindowBefore":"P0D",
        "Date":"09JAN"
      },
      "OriginLocation":{
        "LocationCode":"ESB",
        "MultiAirportCityInd":false
      },
      "DestinationLocation":{
        "LocationCode":"IST",
        "MultiAirportCityInd":false
      },
      "CabinPreferences":[
        {
          "Cabin":"ECONOMY"
        },
        {
          "Cabin":"BUSINESS"
        }
      ]
    }
  ]
}
		

Response

			
{
  "status":"SUCCESS",
  "message":{
    "code":"TK-0000",
    "description":"Request Processed Successfully."
  },
  "data":{
    "availabilityOTAResponse":{
      "createOTAAirRoute":[
        {
          "extraOTAAvailabilityInfoListType":{
            "extraOTAAvailabilityInfoList":{
              "extraOTAFlightInfoListType":{
                "extraOTAFlightInfoList":[
                  {
                    "isPureAnadoluJetFlight":false,
                    "extraOTASegmentInfoListType":{
                      "extraOTASegmentInfoList":{
                        "isAvailable":true,
                        "isConnected":false,
                        "segmentIndex":"1",
                        "isAnadoluJetSegment":false,
                        "isDomestic":true,
                        "isStandBySeat":false
                      }
                    },
                    "StandbyIndicator":false,
                    "isElectronicTicketAvailable":true,
                    "isCodeShare":false,
                    "isFullCodeShare":false,
                    "bookingPriceInfoType":{
                      "PTC_FareBreakdowns":{
                        "PTC_FareBreakdown":[
                          {
                            "FareBasisCodes":{
                              "FareBasisCode":"BU"
                            },
                            "PassengerTypeQuantity":{
                              "Quantity":"1",
                              "Code":"ADT"
                            },
                            "FareInfo":{
                              "PassengerFare":"",
                              "FareReference":{
                                "ResBookDesigCode":"J",
                                "content":"BU"
                              }
                            },
                            "PassengerFare":{
                              "TotalFare":{
                                "CurrencyCode":"TRY",
                                "Amount":"415.99"
                              },
                              "Taxes":{
                                "Tax":[
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"VQ",
                                    "Amount":"10.00",
                                    "RefundableInd":false
                                  },
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"YR",
                                    "Amount":"27.99",
                                    "RefundableInd":false
                                  },
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"DU",
                                    "Amount":"20.00",
                                    "RefundableInd":false
                                  },
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"KD",
                                    "Amount":"61.93",
                                    "RefundableInd":false
                                  }
                                ]
                              },
                              "BaseFare":{
                                "CurrencyCode":"TRY",
                                "Amount":"358.00"
                              },
                              "FareBaggageAllowance":{
                                "UnitOfMeasure":"KILO",
                                "UnitOfMeasureQuantity":"30",
                                "FlightSegmentRPH":"1"
                              }
                            }
                          },
                          {
                            "FareBasisCodes":{
                              "FareBasisCode":"ER"
                            },
                            "PassengerTypeQuantity":{
                              "Quantity":"1",
                              "Code":"ADT"
                            },
                            "FareInfo":{
                              "PassengerFare":"",
                              "FareReference":{
                                "ResBookDesigCode":"V",
                                "content":"ER"
                              }
                            },
                            "PassengerFare":{
                              "TotalFare":{
                                "CurrencyCode":"TRY",
                                "Amount":"140.99"
                              },
                              "Taxes":{
                                "Tax":[
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"VQ",
                                    "Amount":"10.00",
                                    "RefundableInd":false
                                  },
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"YR",
                                    "Amount":"27.99",
                                    "RefundableInd":false
                                  },
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"DU",
                                    "Amount":"10.00",
                                    "RefundableInd":false
                                  },
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"KD",
                                    "Amount":"19.98",
                                    "RefundableInd":false
                                  }
                                ]
                              },
                              "BaseFare":{
                                "CurrencyCode":"TRY",
                                "Amount":"93.00"
                              },
                              "FareBaggageAllowance":{
                                "UnitOfMeasure":"KILO",
                                "UnitOfMeasureQuantity":"15",
                                "FlightSegmentRPH":"1"
                              }
                            }
                          },
                          {
                            "FareBasisCodes":{
                              "FareBasisCode":"EU"
                            },
                            "PassengerTypeQuantity":{
                              "Quantity":"1",
                              "Code":"ADT"
                            },
                            "FareInfo":{
                              "PassengerFare":"",
                              "FareReference":{
                                "ResBookDesigCode":"L",
                                "content":"EU"
                              }
                            },
                            "PassengerFare":{
                              "TotalFare":{
                                "CurrencyCode":"TRY",
                                "Amount":"170.99"
                              },
                              "Taxes":{
                                "Tax":[
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"VQ",
                                    "Amount":"10.00",
                                    "RefundableInd":false
                                  },
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"YR",
                                    "Amount":"27.99",
                                    "RefundableInd":false
                                  },
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"DU",
                                    "Amount":"12.00",
                                    "RefundableInd":false
                                  },
                                  {
                                    "CurrencyCode":"TRY",
                                    "TaxCode":"KD",
                                    "Amount":"24.56",
                                    "RefundableInd":false
                                  }
                                ]
                              },
                              "BaseFare":{
                                "CurrencyCode":"TRY",
                                "Amount":"121.00"
                              },
                              "FareBaggageAllowance":{
                                "UnitOfMeasure":"KILO",
                                "UnitOfMeasureQuantity":"20",
                                "FlightSegmentRPH":"1"
                              }
                            }
                          }
                        ]
                      }
                    },
                    "isDomestic":true,
                    "isFullInternational":false,
                    "flightNumber":"TK2192",
                    "isFullAvailable":true
                  }
                ]
              },
              "isAllFlightsFullCodeShare":false,
              "isIndeedHasMoreFlightsForAnotherPortInTheSameCity":false,
              "filteredRoutes":{
                "filteredRoute":{
                  "origin":"SAW",
                  "destination":"ESB"
                }
              },
              "RPH":"IST_ANK_14OCT2017"
            }
          },
          "OTA_AirAvailRS":{
            "Comment":"",
            "OriginDestinationInformation":{
              "OriginLocation":{
                "AlternateLocationInd":false,
                "LocationCode":"IST"
              },
              "OriginDestinationOptions":{
                "OriginDestinationOption":[
                  {
                    "FlightSegment":{
                      "DepartureAirport":{
                        "LocationCode":"IST"
                      },
                      "Ticket":"eTicket",
                      "ArrivalAirport":{
                        "LocationCode":"ESB"
                      },
                      "BookingClassAvail":[
                        {
                          "ResBookDesigQuantity":"7",
                          "ResBookDesigStatusCode":"BU",
                          "ResBookDesigCode":"J",
                          "RPH":"Pax:ADT	 SegmentIndex:1	 Cabin:BU"
                        },
                        {
                          "ResBookDesigQuantity":"9",
                          "ResBookDesigStatusCode":"ER",
                          "ResBookDesigCode":"V",
                          "RPH":"Pax:ADT	 SegmentIndex:1	 Cabin:ER"
                        },
                        {
                          "ResBookDesigQuantity":"9",
                          "ResBookDesigStatusCode":"EU",
                          "ResBookDesigCode":"L",
                          "RPH":"Pax:ADT	 SegmentIndex:1	 Cabin:EU"
                        }
                      ],
                      "DateChangeNbr":false,
                      "StopQuantity":"0",
                      "CodeshareInd":false,
                      "Equipment":{
                        "Value":"UNKNOWN_PLANE",
                        "AirEquipType":"78G"
                      },
                      "DepartureDateTime":"2017-10-14T02:20:00.000+03:00",
                      "ArrivalDateTime":"2017-10-14T03:40:00.000+03:00",
                      "FlightNumber":"TK2192",
                      "OperatingAirline":{
                        "CompanyShortName":"TK"
                      },
                      "JourneyDuration":"P0DT1H20M0.000S"
                    }
                  }
                ]
              },
              "DepartureDateTime":"2017-10-14T00:00:00.000+03:00",
              "ArrivalDateTime":"2017-10-14T00:00:00.000+03:00",
              "RPH":"IST_ANK_14OCT2017",
              "DestinationLocation":{
                "AlternateLocationInd":false,
                "LocationCode":"ANK"
              }
            },
            "Version":"0"
          }
        }
      ],
      "isMixCabin":false
    }
  }
}
		

You can find how to test an API in documentation page.