menu

Ticket

This method is to be called to generate ticket for both LCCs and Non LCCs (already booked itinerary).

Price verification is done before creating a booking/ ticket 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 Ticket 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.

Also, in case of Non LCC bookings, if Passenger’s Date of Birth and Passport details are not provided in the book response, then the same needs to be provided when calling ticket method wherever applicable.

If in case there is a price change at the time of ticketing then hit the ticket method again with the updated price and "IsPriceChangeAccepted" node true and the ticket would be generated with the updated price.

Service URL (REST) to be used:
https://xmloutbookingapi.tboair.com/api/v1/Booking/Ticket

Ticket Request for Non LCC
Level Element Format Comments Mandatory/ Optional
1 TokenId String Token ID Mandatory (Token Id to be echoed back in further requests valid for 20 hrs
2 TrackingId String TrackingId Mandatory
3 IPAddress String IP Address of the end Mandatory
4 EndUserBrowserAgent String Browser Information like Mozilla/5.0(Windows NT 6.1) Mandatory
5 User Data String Pax name Mandatory
6 PointOfSale String Departure Country code Mandatory
6.1 RequestOrigin String Departure Country name Mandatory
6.2 IsHoldEligibleForLcc Boolean Is hold applicable for lcc Mandatory (Value –true or false)
6.3 NoOfSeatAvailable Integer Number of Seats Mandatory(from search response)
6.4 OperatingCarrier String Airline name Mandatory(from search response)
7 SegmentIndicator Integer Segment Indicator 1 - outbound2 - Inbound flights
Ticket Request for LCC
Level Element Format Comments Mandatory/ Optional
1 Airline String Airline code Mandatory
2 AirportCode String Airport code Mandatory
3 AirportName String Airport name Optional
4 CityCode String City code Mandatory
5 CityName String City name Mandatory
5.1 CountryCode String Country code Mandatory
5.2 CountryName String Country name Mandatory
5.3 Terminal String Terminal number Optional
5.4 FlightNumber String Flight Number Mandatory
5.5 DepartureTime Date Time Departure time Mandatory
5.6 ArrivalTime Date Time Arrival time Mandatory
5.7 BookingClass String BookingClass Mandatory(from farequote response)
5.8 FlightStatus String Flight status Mandatory
5.9 MealType String Mealtype Null as value
5.10 ETicketEligible Boolean Is E-Ticket eligible Mandatory (Value –true or false)
5.11 AirlinePNR String AirlinePNR Null as value
5.12 Craft String Craft Optional
5.13 StopOver Boolean Direct or Stop flight Mandatory
5.14 Stops String Number of Stops Mandatory
5.15 Mile String Miles Optional
5.16 Duration Time Duration Optional(if in case duration is 0 refer the node of Accumulated Duration)
5.17 Ground Time Time Ground time Optional
5.18 AccumulatedDuration Time Accumulated duration Optional
5.19 StopPoint String Stopover point Optional
5.20 StopPointArrivalTime Date Time Stopover arrival time Optional
5.21 StopPointDepartureTime Date Time Stopover departure time Optional
5.22 IncludedBaggage String Checkin Baggage Mandatory
5.23 CabinBaggage String CabinBaggage Mandatory Includedor KG or PC(from search response)
5.19 CabinClass String Economy/Premium Economy/Business/ First etc. Non Mandatory
5.19.1 AdditionalBaggage String Any Additional Baggage Non Mandatory
5.19.2 AirlineCode String Airline code Mandatory
5.19.3 FlightNumber String Flight Number Mandatory
5.19.4 Craft String Craft Optional
5.19.5 AirlineName String Airline name Mandatory
5.19.6 OperatingCarrier String Airline name Mandatory
5.19.7 AirlineName String Airline name Mandatory
5.20 DepartureDateTime String Departure time Mandatory
5.20.1 ArrivalDateTime String Arrival time Mandatory
5.20.2 LayoverText String Layover text Non Mandatory
5.20.3 InFlightServices String In service Non Mandatory
5.20.4 Title Enumeration Mr = 0,Miss = 1,Mrs = 2 Mandatory
5.20.5 "FirstName" String FirstName Mandatory
5.20.6 "LastName" String LastName Mandatory
5.20.7 Origin String String Mandatory
5.20.8 Type Enumeration Adul NotSet = 0,Adult = 1,Child = 2,Infant = 3,Senior = 4,Youth = 5 Mandatory
5.21 DateOfBirth String DOB Mandatory
5.21.1 Gender Enumeration NotSet = 0,Male = 1,Female = 2 Mandatory
5.21.2 PassportNo String PassportNo Mandatory
5.21.3 PassportExpiry String PassportExpiry Mandatory
5.21.4 AddressLine1 String AddressLine1 Mandatory
5.21.5 AddressLine2 String AddressLine2 Mandatory
5.21.6 CountryName String CountryName Mandatory
5.21.7 CountryCode String CountryCode Mandatory
5.21.8 CityCode String CityCode Mandatory
5.21.9 CityName String City name Mandatory
5.21.10 Code String Baggage code Mandatory
6 Description Integer Description 0
Ticket Response
Seat NA NA can send as NULL
1 Mobile1 Numeric "Mobile1" Mandatory
2 Mobile1CountryCode String Mobile1CountryCode Mandatory
3 Email String "Email" Mandatory
4 IsLeadPax Boolean true or false mandatory
5 "FFAirline" String Frequent flyer Mandatory(SEND value as NULL)
6 "FFNumber" String Frequent flyer number Mandatory(SEND value as NULL)
7 TotalFare Decimal Total fare of the Mandatory(The value of total fare should be sent exactly as received in the fare quote, without any modifications) For example, if the total fare is 1500 USD for 3 passengers,send the full 1500 USD for each pax under fare. The backend will handle the division among passengers.
7.1 OtherCharges Decimal Other Charge Mandatory
7.2 AgentMarkup Decimal Agency markup as per the configurable Non Mandatory
7.3 ServiceFee Decimal Service Fee Mandatory
7.4 BaseFare Decimal The total Base fare of the booking Mandatory
7.5 Origin String Origin Mandatory (e.g. DEL)
7.6 "Destination" String Destination Mandatory
7.7 "Airline" String Airline Mandatory
7.8 "FareRestriction" String Fare basis code Mandatory
7.9 "FareBasisCode" String List Fare rule details Mandatory
7.10 FareRuleDetail String List Fare rule details Mandatory
7.11 DepartureDate String Departure date Mandatory
7.12 ValidatingAirlineCode String ValidatingAirlineCode Mandatory
7.13 ResponseTime String Response time 0
7.13.1 JourneyType Enumeration Specify journey type 2 - Return
7.13.2 "Destination" String "Destination city code Mandatory
7.13.3 Origin String Origin city code Mandatory
7.13.4 "LastTicketDate" Date Time LTD Mandatory(null)
7.13.5 TravelDate Date Time Travel Date Mandatory
7.13.6 SearchType Enumeration NotSet = 0,OneWay = 1,Return = 2,MultiWay = 3,AdvanceSearch = 4 Mandatory
7.13.7 "NonRefundable" Boolean Fare refundable or not Mandatory
7.13.8 "IsDomestic" Boolean LCC/Non LCC Mandatory
7.13.8.1 "IsLcc" Boolean Is the result for LCC or Non LCC Mandatory
7.13.8.2 "AirlineRemark" String Airline remarks Optional
7.13.8.3 PNR Null as value (we will return in the response)
7.13.8.4 Response Status Enumeration Ticket response status enums { Failed = 0, Successful = 1, NotSaved = 2, NotCreated = 3, NotAllowed = 4, InProgress = 5, TicketedDB = 6, TicketedWS = 7,PriceChanged = 8,OtherError = 9, Released = 10, Pending = 11,Cancelled = 12 }