menu

Book

Book method is to hold the Booking of Non LCC airline. Every Non LCC airline must be Hold first before ticketing. It will not work for LCC airline because LCC airline is ticketed directly.

Price verification is done before creating a booking and PNR No. is returned in case of a successful booking.

In case of Price change or Time change, you will get new fare and/or new time in Book response with IsPriceChanged node and/or IsTimeChanged node set as ‘true’.

The price comparison is to be made at the client’s end, and Book request needs to be sent again with the updated fare and/ or updated time.

Passenger’s Date of Birth and Passport details are optional in book request wherever applicable. However, if not provided in book request then the same needs to be provided in Ticket request.

If in case there is any price or time chnage then you need to hit the ticket method only and the ticket would be generated with the updated price only.

Service URL (REST) to be used:
http://api.tektravels.com/BookingEngineService_Air/AirService.svc/rest/Book

Book Request
Level Element Format Comments Mandatory/ Optional
1 EndUserIp String IP Address of the end user Mandatory
2 TokenId String Token ID Mandatory
3 TraceId String Trace Id Mandatory
4 ResultIndex String Result Index Mandatory
5 Passengers[] Mandatory
5.1 Title String Title Mandatory
5.2 FirstName String First name Mandatory
5.3 LastName String Last name Mandatory
5.4 PaxType String Pax type Mandatory
5.5 DateOfBirth Date Time Date of birth Optional
5.6 Gender String Gender Mandatory
5.7 GSTCompanyAddress String GSTCompanyAddress Mandatory
5.8 GSTCompanyContactNumber String GSTCompanyContactNumber Mandatory
5.9 GSTCompanyName String GSTCompanyName Mandatory
5.10 GSTNumber String GSTNumber Mandatory
5.11 GSTCompanyEmail String GSTCompanyEmail Mandatory
5.12 PassportNo String Passport no Mandaory in case of IsPassportRequiredAtBook is TRUE in FareQuote response otherwise Optional
5.13 PassportExpiry Date time Passport expiry Mandaory in case of IsPassportRequiredAtBook is TRUE in FareQuote response otherwise Optional
5.14 PassportIssueDate Date time Passport Issue Date Mandaory in case of IsPassportFullDetailRequiredAtBook is TRUE in FareQuote response otherwise Optional
5.15 AddressLine1 String Address Mandatory
5.16 AddressLine2 String Address Optional
5.17 City String City Mandatory
5.18 CountryCode String Country code Mandatory
5.19 CountryName String Country name Mandatory
5.20 ContactNo String Contact no Mandatory
5.21 Email String Email Mandatory
5.22 IsLeadPax Boolean Represent the lead guest of the booking (Value True/ False) Mandatory
5.23 FFAirlineCode String FF airline Code Optional
5.24 FFNumber String FF number Optional
5.25 Fare
5.25.1 BaseFare Decimal Base fare Mandatory
5.25.2 Tax Decimal Tax Mandatory
5.25.3 TransactionFee Decimal Transaction fee Mandatory
5.25.4 YQTax Decimal Fuel Surcharge Mandatory
5.25.5 AdditionalTxnFeeOfrd Decimal Additional Transaction Fee Offered (It will always be zero) Mandatory
5.25.6 AdditionalTxnFeePub Decimal Additional Transaction Fee Published Mandatory
5.25.7 AirTransFee Decimal Air trans fee Mandatory
5.26 Meal
5.26.1 Code String Meal code Optional
5.26.2 Description String Meal description Optional
5.27 Seat
5.27.1 Code String Seat code Optional
5.27.2 Description String Seat description Optional
5.28 Nationality String Nationality Mandatory
5.29 CellCountryCode String CellCountryCode Optional[This is an optional node and can be send in Book/Ticket request, it will return the contact number with the passed CellCountryCode]
Book Response
Level Element Format Comments Mandatory/ Optional
1 IsPriceChanged Boolean Represents whether price has changed or not (Value - True/ False) Mandatory
2 IsTimeChanged Boolean Represents whether time has changed or not (Value - True/ False) Mandatory
3 SSRDenied String SSR denied Mandatory
4 SSRMessage String SSRMessage Optional
5 Status String [NotSet = 0, Successful = 1, Failed = 2, OtherFare = 3, OtherClass = 4, BookedOther = 5, NotConfirmed = 6] Mandatory
6 FlightItinerary
6.1 BookingId Integer Unique booking id Mandatory
6.2 PNR String PNR no Mandatory
6.3 IsDomestic Boolean Search Request is for domestic or international (Value – True or False) Mandatory
6.4 Source String Airline Source Mandatory
6.5 Origin String Origin Mandatory
6.6 Destination String Destination Mandatory
6.7 AirlineCode String Airline Code Mandatory
6.8 ValidatingAirlineCode String Validating airline code Mandatory
6.9 AirlineRemarks String Airline Remarks Optional
6.10 IsLCC Boolean Is the result for LCC or Non LCC (Value – True or False) Mandatory
6.11 NonRefundable Boolean Is the fare refundable or Mandatory
6.12 FareType String FareType Mandatory
6.13 Fare Fare of search resultr
6.13.1 Currency String Currency Mandatory
6.13.2 BaseFare Decimal Base fare Mandatory
6.13.3 Tax Decimal Total tax Mandatory
6.13.4 YQTax Decimal IP Address of the end user Mandatory
6.13.5 AdditionalTxnFeeOfrd Decimal Additional Transaction Fee Offered (It will always be zero) Mandatory
6.13.6 AdditionalTxnFeePub Decimal Additional Transaction Fee Published Mandatory
6.13.7 OtherCharges Decimal Other Charges Mandatory
6.13.8 ChargeBU[] String Charge Break Up Mandatory
6.13.8.1 TBOMarkUp Decimal TBO Mark-up Mandatory
6.13.8.2 ConvenienceCharge Decimal Convenience Charge Mandatory
6.13.8.3 OtherCharge Decimal Other Charge Mandatory
6.13.9 Discount Decimal The total discount amount of the booking. Will be zero for API customer. Mandatory
6.13.10 PublishedFare Decimal Published Fare Mandatory
6.13.11 CommissionEarned Decimal Agent Commission Mandatory
6.13.12 PLBEarned Decimal Performance Linked Bonus Mandatory
6.13.13 IncentiveEarned Decimal Agent Incentive Mandatory
6.13.14 OfferedFare Decimal Offerred Fare Mandatory
6.13.15 TdsOnCommission Decimal TDS on the commission Mandatory
6.13.16 TdsOnPLB Decimal TDS on Performance Linked Bonus Mandatory
6.13.17 TdsOnIncentive Decimal TDS on the incentive Mandatory
6.13.18 ServiceFee Decimal Service Fee Mandatory
6.14 Passenger[]
6.14.1 PaxID Integer Unique pax id Mandatory
6.14.2 Title String Title Mandatory
6.14.3 FirstName String First Name Mandatory
6.14.4 LastName String Last Name Mandatory
6.14.5 PaxType String Pax Type Mandatory
6.14.6 DateOfBirth Date Time Date of birth Optional
6.14.7 Gender String Gender Mandatory
6.14.8 PassportNo String Passport no Optional
6.14.9 PassportExpiry Date time Passport expiry Optional
6.14.10 AddressLine1 String Address Mandatory
6.14.11 AddressLine2 String Address Optional
6.14.12 City String City Mandatory
6.14.13 CountryCode String Country Code Mandatory
6.14.14 CountryName String Country Name Mandatory
6.14.15 ContactNo String Contact No Mandatory
6.14.16 Email String Email Mandatory
6.14.17 IsLeadPax Boolean Represent the lead guest of the booking (Value - True/ False) Mandatory
6.14.18 FFAirlineCode String FF airline Optional
6.14.19 FFNumber String FF number Optional
6.14.20 Fare
6.14.20.1 Currency String Currency Mandatory
6.14.20.2 BaseFare Decimal Base fare Mandatory
6.14.20.3 Tax Decimal Total tax Mandatory
6.14.20.4 YQTax Decimal Fuel surcharge Mandatory
6.14.20.5 AdditionalTxnFeeOfrd Decimal Additional Transaction Fee Offered (It will always be zero) Mandatory
6.14.20.6 AdditionalTxnFeePub Decimal Additional Transaction Fee Published Mandatory
6.14.20.7 OtherCharges Decimal Other Charge Mandatory
6.14.20.8 ChargeBU[] String It will contain different charge breakup that is service charge or Credit card charge.For details please refer ChargeBraekUp structure. Mandatory
6.14.20.8.1 TBOMarkUp Decimal TBO Mark-up Mandatory
6.14.20.8.2 ConvenienceCharge Decimal Convenience Charge Mandatory
6.14.20.8.3 OtherCharge Decimal Other Charge Mandatory
6.14.20.9 Discount Decimal The total discount amount of the booking. Will be zero for API customer. Mandatory
6.14.20.10 PublishedFare Decimal Published Fare Mandatory
6.14.20.11 CommissionEarned Decimal Agent Commission Mandatory
6.14.20.12 PLBEarned Decimal Performance Linked Bonus Mandatory
6.14.20.13 IncentiveEarned Decimal Agent Incentive Mandatory
6.14.20.14 OfferedFare Decimal Offered Fare Mandatory
6.14.20.15 TdsOnCommission Decimal TDS on the commission Mandatory
6.14.20.16 TdsOnPLB Decimal TDS on Performance Linked Bonus Mandatory
6.14.20.17 TdsOnIncentive Decimal TDS on the incentive Mandatory
6.14.20.18 ServiceFee Decimal Service Fee Mandatory
6.14.21 Meal
6.14.21.1 Code String Meal code Optional
6.14.21.2 Description String Meal description Optional
6.14.22 Seat
6.14.22.1 Code String Seat code Optional
6.14.22.2 Description String Seat description Optional
6.14.23 Nationality String Nationality Mandatory
6.15 Segments
6.15.1 TripIndicator Integer Trip Indicator Mandatory
6.15.2 SegmentIndicator Integer Segment Indicator Mandatory
6.15.3.1 AirlineCode String Airline code Mandatory
6.15.3.2 AirlineName String Airline name Mandatory
6.15.3.3 FlightNumber String Flight Number Mandatory
6.15.3.4 FareClass String Fare Class Mandatory
6.15.3.5 OperatingCarrier String OperatingCarrier Mandatory
6.15.4 Origin
6.15.4.1 Airport
6.15.4.1.1 AirportCode String Airport Code Mandatory
6.15.4.1.2 AirportName String Airport Name Optional
6.15.4.1.3 Terminal String Terminal number Optional
6.15.4.1.4 CityCode String City code Mandatory
6.15.4.1.5 CityName String City name Mandatory
6.15.4.1.6 CountryCode String CountryCode Mandatory
6.15.4.1.7 CountryName String CountryName Mandatory
6.15.4.2 DepTime Date Time Departure time Mandatory
6.15.5 Destination
6.15.5.1 Airport
6.15.5.1.1 AirportCode String Airport code Mandatory
6.15.5.1.2 AirportName String Airport Name Optional
6.15.5.1.3 Terminal String Terminal number Optional
6.15.5.1.4 CityCode String City code Mandatory
6.15.5.1.5 CityName String City Name Mandatory
6.15.5.1.6 CountryCode String Country Code Mandatory
6.15.5.1.7 CountryName String Country Name Mandatory
6.15.5.2 ArrTime Date Time Arrival time Mandatory
6.15.5 AirlinePNR String Airline pnr Optional
6.15.6 AccumulatedDuration Time Accumulated duration Optional
6.15.7 Duration Time Duration Optional
6.15.8 GroundTime Time Ground time Optional
6.15.9 Mile String Miles Optional
6.15.10 StopOver
6.15.11 StopPoint String Stopover point Optional
6.15.12 StopPointArrivalTime Date Time Stopover arrival time Optional
6.15.13 StopPointDepartureTime Date Time Stopover departure time Optional
6.15.14 Craft String Craft Optional
6.15.15 IsETicketEligible Boolean Is E-Ticket eligible Mandatory
6.15.16 FlightStatus String Flight status Mandatory
6.15.17 Status String Flight status code Mandatory
6.16 LastTicketDate Date Time Last ticket date Mandatory
6.17 TicketAdvisory String Ticket Advisory Optional
6.18 FareRules This is the fare rules of the flight fare offeredr
6.18.1 Origin String Origin Mandatory
6.18.2 Destination String Destination Mandatory
6.18.3 Airline String Airline Mandatory
6.18.4 FareBasisCode String Fare Basis Code Mandatory
6.18.5 FareRuleDetail String List Fare Rule Detail Mandatory
6.18.6 FareRestriction String FareRestriction Mandatory
6.18.7 GSTCompanyAddress String GSTCompanyAddress Mandatory
6.18.8 GSTCompanyContactNumber String GSTCompanyContactNumber Mandatory
6.18.9 GSTCompanyName String GSTCompanyName Mandatory
6.18.10 GSTNumber String GSTNumber Mandatory
6.18.11 GSTCompanyEmail String GSTCompanyEmail Mandatory