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

requestHeader

Name Description Type Required

clientUsername

Client Username String Yes

channel

Channel info (WEB/MOBIL) Yes

clientTransactionId

A unique id to identify transaction String Yes

clientCode

Client Code String No

airlineCode

Airline info String (TK,AJ) No

languageCode

Language Code String (TR,EN) No

agencyOfficeCode

Agency Office Code String (ITT) No

extraParameters

The model object which contains key, value Model[] No

requestHeader.extraParameters

Name Description Type Required

key

Key of the extra parameter String Yes

value

Value of the extra parameter String Yes
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

Domestic Availability Response

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

International Availability Response

flexPricerAvailabilityOutput

Name Description Type

jSessionId

Amadeus Sessionid String

PAGE_TICKET

Default response parameters: “0” String

TEMPLATE

Response template name: "SITE_JSP_FLEX_PRICER_AVL" String

flexPricerAvailabilityOutput.LIST_AVAILABILITY_RANGE

Name Description Type

LOCATION

Departure location of the query String

flexPricerAvailabilityOutput.LIST_AVAILABILITY_RANGE.MAX_AVAIL_DATE

Name Description Type

code

Valid date of the availability search (datetime format; “2020-05-04T06:06:00") DateTime

content

Content of the valid availability date (ex: "Monday, May 04, 2020") String

flexPricerAvailabilityOutput.LIST_AVAILABILITY_RANGE.MIN_AVAIL_DATE

Name Description Type

code

System date of the availability search (datetime format; "2019-05-15T08:06:00") DateTime

content

Content of the availability search date ("Wednesday, May 15, 2019") String

flexPricerAvailabilityOutput.LIST_PANEL

Name Description Type

IS_LOADED_FROM_CACHE

It shows whether flight and prices are coming from cache Boolean

TYPE

When it is ‘FP’, flight recommendation and price information in related LIST_PANEL return for specific date. When it is ‘C’, bestbuy prices return for specific timeframe (ex: weekly) String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_DATE.DATE

Name Description Type

code

It shows outbound dates of availability search. DateTime

content

It shows inbound dates of availability search. DateTime

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_PROPOSED_BOUND.LIST_FLIGHT.LIST_SEGMENT

Name Description Type

SEGMENT_ID

It shows segment_ids of flights.(ex:0) Integer

E_TICKETING

It shows inbound dates of availability search. Boolean

SEGMENT_FLIGHT_TIME

It shows segment flight time in milisecond. Integer

ELAPSED_FLYING_TIME

It shows total time in milisecond. Integer

NUMBER_OF_STOPS

It shows number of stops in that flight segment. Integer

E_TERMINAL

It shows arrival terminal. (ex: “1”) String

FLIGHT_NUMBER

It shows flight number of the segment. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_PROPOSED_BOUND.LIST_FLIGHT.LIST_SEGMENT.E_LOCATION

Name Description Type

CITY_CODE

It shows city code. (ex: FRA) String

LOCATION_CODE

It shows airport code (ex: FRA) String

CITY_NAME

It shows city name (ex: Frankfurt) String

COUNTRY_NAME

It shows country name. (ex: Germany) String

LOCATION_NAME

It shows airport name (ex: Frankfurt International) String

COUNTRY_CODE

It shows country_code. (ex: DE) String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_PROPOSED_BOUND.LIST_FLIGHT.LIST_SEGMENT.B_LOCATION

Name Description Type

CITY_CODE

It shows city code. (ex: FRA) String

LOCATION_CODE

It shows airport code (ex: FRA) String

CITY_NAME

It shows city name (ex: Frankfurt) String

COUNTRY_NAME

It shows country name. (ex: Germany) String

LOCATION_NAME

It shows airport name (ex: Frankfurt International) String

COUNTRY_CODE

It shows country_code. (ex: DE) String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_PROPOSED_BOUND.LIST_FLIGHT.LIST_SEGMENT.AIRLINE

Name Description Type

CODE

It shows airline code of the segment. String

NAME

It shows airline name of the segment. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_PROPOSED_BOUND.LIST_FLIGHT.LIST_SEGMENT.B_DATE

Name Description Type

code

It shows depature time. DateTime

content

It shows depature date. DateTime

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_PROPOSED_BOUND.LIST_FLIGHT.LIST_SEGMENT.E_DATE

Name Description Type

code

It shows depature time. DateTime

content

It shows depature date. DateTime

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_PROPOSED_BOUND.LIST_FLIGHT.LIST_SEGMENT.EQUIPMENT

Name Description Type

CODE

It shows aircraft code. (ex: “333") String

NAME

It shows aircraft name. ("Airbus Industrie A330-300") String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_PROPOSED_BOUND.LIST_FLIGHT

Name Description Type

FLIGHT_ID

It shows flight_ids which are referred in recommendations.(ex:0) Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION

Name Description Type

RECOMMENDATION_ID

It shows flight recommendation_ids which includes flight_ids.(ex:0) Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.FARE_FAMILY

Name Description Type

BRAND_NAME

It shows fare family name of that recommendation. (ex: “ECONOMY PROMOTIONAL”) String

SHORT_NAME

It shows fare family code of that recommendation. (ex: “TREUPRO”) String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_BOUND_LIST_FLIGHT

Name Description Type

FLIGHT_ID

It shows flight_ids. (ex:0) Integer

NUMBER_OF_LAST_SEATS

It shows number of last seats of the booking class for the first flight. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_BOUND_LIST_FLIGHT.LSA_DEBUG_INFO

Name Description Type

RBD

It shows flight booking class. String

FIRST_FLIGHT_NUMBER

It shows flight number of first segment. (ex: “1591”) Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRIP_PRICE.CURRENCY

Name Description Type

CODE

It shows currency code of amount,, tax and fees. String

NAME

It shows currency of amount,, tax and fees. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRIP_PRICE

Name Description Type

AMOUNT

It shows total of taxes and amount without tax (base fare) String

AMOUNT_WITHOUT_TAX

It shows base fare of trip. String

TAX

It shows total tax amount. Integer

TOTAL_AMOUNT

It shows total price as sum of AMOUNT and FEE values. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRIP_PRICE.LIST_DISPLAY_TAX

Name Description Type

CODE

It shows some tax codes (not all taxes). String

VALUE

It shows some tax amount. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_BOUND_PRICE.CURRENCY

Name Description Type

CODE

It shows currency code of amount,, tax and fees. String

NAME

It shows currency of amount,, tax and fees. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_BOUND_PRICE

Name Description Type

AMOUNT

It shows total of taxes and amount without tax (base fare) String

AMOUNT_WITHOUT_TAX

It shows base fare of trip. String

TAX

It shows total tax amount. Integer

TOTAL_AMOUNT

It shows total price as sum of AMOUNT and FEE values. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_BOUND_PRICE.LIST_DISPLAY_TAX

Name Description Type

CODE

It shows some tax codes (not all taxes). String

VALUE

It shows some tax amount. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_BOUND_PRICE.LIST_FEE

Name Description Type

VALUE

It shows ticketing service charge value with the code as “0”. Integer

TYPE

It shows ticketing service charge value with the code as “0”. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_PNR.LIST_TRAVELLER_TYPE

Name Description Type

NUMBER

It shows requested passenger type number. If there are adult and child types requested, NUMBER will be 1 and 2 for each. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_PNR.LIST_TRAVELLER_TYPE.LIST_TRAVELLER_TYPE_PRICE.CURRENCY

Name Description Type

CODE

It shows currency code of amount,, tax and fees. String

NAME

It shows currency of amount,, tax and fees. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_PNR.LIST_TRAVELLER_TYPE.LIST_TRAVELLER_TYPE_PRICE

Name Description Type

AMOUNT

It shows total of taxes and amount without tax (base fare) String

AMOUNT_WITHOUT_TAX

It shows base fare of trip. String

TAX

It shows total tax amount. Integer

TOTAL_AMOUNT

It shows total price as sum of AMOUNT and FEE values. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_PNR.LIST_TRAVELLER_TYPE.LIST_TRAVELLER_TYPE_PRICE.LIST_DISPLAY_TAX

Name Description Type

CODE

It shows some tax codes (not all taxes). String

VALUE

It shows some tax amount. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_PNR.LIST_TRAVELLER_TYPE.TRAVELLER_TYPE

Name Description Type

CODE

It shows some passenger type code. String

NAME

It shows passenger type name. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_PNR.LIST_TRAVELLER_TYPE.LIST_BOUND.LIST_SEGMENT

Name Description Type

SEGMENT_ID

It shows segment id. Integer

LIST_PTC_APPLIED

It shows fare applied passenger type code. String

FARE_CLASS

It shows fare basis code of the segment. String

RBD

It shows fare/booking class of segment. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_PNR.LIST_TRAVELLER_TYPE.LIST_BOUND.LIST_SEGMENT.FARE_FAMILY

Name Description Type

BRAND_NAME

It shows segment id. String

SHORT_NAME

It shows fare applied passenger type code. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_PNR.LIST_TRAVELLER_TYPE.LIST_BOUND.LIST_SEGMENT.LIST_FARE_TYPES

Name Description Type

CODE

It shows fare types code whether public or private. String

NAME

It shows fare types whether public or private. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_PNR.LIST_TRAVELLER_TYPE.LIST_TRAVELLER

Name Description Type

IS_PRIMARY_TRAVELLER

Boolean

HAS_INFANT

It shows if requested traveller has infant. (If there is infant in request, it will be “true”) Boolean

REQUESTED_TRAVELLER_TYPE

It shows requested traveller type. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRAVELER_PRICE.CURRENCY

Name Description Type

CODE

It shows currency code of amount,, tax and fees. String

NAME

It shows currency of amount,, tax and fees. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRAVELER_PRICE

Name Description Type

AMOUNT

It shows total of taxes and amount without tax (base fare) String

AMOUNT_WITHOUT_TAX

It shows base fare of trip. String

TAX

It shows total tax amount. Integer

TOTAL_AMOUNT

It shows total price as sum of AMOUNT and FEE values. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRAVELER_PRICE.LIST_DISPLAY_TAX

Name Description Type

CODE

It shows some tax codes (not all taxes). String

VALUE

It shows some tax amount. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRAVELER_PRICE.LIST_FEE

Name Description Type

VALUE

It shows ticketing service charge value with the code as “0”. Integer

TYPE

It shows ticketing service charge value with the code as “0”. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRIP_PRICE.CURRENCY

Name Description Type

CODE

It shows currency code of amount,, tax and fees. String

NAME

It shows currency of amount,, tax and fees. String

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRIP_PRICE

Name Description Type

AMOUNT

It shows total of taxes and amount without tax (base fare) String

AMOUNT_WITHOUT_TAX

It shows base fare of trip. String

TAX

It shows total tax amount. Integer

TOTAL_AMOUNT

It shows total price as sum of AMOUNT and FEE values. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRIP_PRICE.LIST_DISPLAY_TAX

Name Description Type

CODE

It shows some tax codes (not all taxes). String

VALUE

It shows some tax amount. Integer

flexPricerAvailabilityOutput.LIST_PANEL.LIST_TAB.LIST_RECOMMENDATION.LIST_TRIP_PRICE.LIST_FEE

Name Description Type

VALUE

It shows ticketing service charge value with the code as “0”. Integer

TYPE

It shows ticketing service charge value with the code as “0”. Integer

Request

			
{
	"requestHeader": {
		"clientUsername": "OPENAPI",
		"clientTransactionId": "CLIENT_TEST_1",
		"channel": "WEB"
	},
	"ReducedDataIndicator": false,
	"RoutingType": "R",
	"PassengerTypeQuantity": [{
		"Code": "adult",
		"Quantity": 1
	},
	{
		"Code": "child",
		"Quantity": 1
	},
	{
		"Code": "infant",
		"Quantity": 0
	}],
	"OriginDestinationInformation": [{
		"DepartureDateTime": {
			"WindowAfter": "P0D",
			"WindowBefore": "P0D",
			"Date": "14JAN"
		},
		"OriginLocation": {
			"LocationCode": "IST",
			"MultiAirportCityInd": false
		},
		"DestinationLocation": {
			"LocationCode": "ESB",
			"MultiAirportCityInd": false
		},
		"CabinPreferences": [{
			"Cabin": "ECONOMY"
		},
		{
			"Cabin": "BUSINESS"
		}]
	},
	{
		"DepartureDateTime": {
			"WindowAfter": "P0D",
			"WindowBefore": "P0D",
			"Date": "19JAN"
		},
		"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.