Flights Overview

Environment Details:

Protocol: https

Environment: Sandbox
Flights Domain: flight-aggregator-api-sandbox.travclan.com

List of Services and Endpoints

Service NameEndpointMethodDescription
Search Flight/api/v2/flights/searchPOSTFetches available flights based on search criteria.
Fare Rules/api/v2/flights/fare-rulesPOSTFetches the fare rules for a flight.
Create Flight Itinerary/api/v2/flights/itineraryPOSTCreates a new flight itinerary.
Passenger Collection/api/v2/flights/itinerary/{itineraryCode}/passenger-collectionsPOSTSaves passenger collection to a flight itinerary.
Get Itinerary/api/v2/flights/itinerary/{itineraryCode}GETFetches a flight's itinerary.
Fare Quote/api/v2/flights/itinerary/{itineraryCode}/fare-quotePOSTChecks the price of a flight with the airline/provider for changes.
Book Flight/api/v2/flights/itinerary/{itineraryCode}/bookPOSTBooks a flight.
Booking Details/api/v2/flights/bookings/{bookingCode}GETRetrieves booking details.

Explanation:

  1. Search Flight - User searches for available flights.
  2. Fare Rules - (Optional, can be called anytime after search) – Retrieves fare rules for selected flights.
  3. Create Itinerary - Creates a flight itinerary using the user selected flight.
  4. Get Itinerary - (Optional, can be called anytime after itinerary creation) – Fetches details of the created itinerary.
  5. Save Passenger Info - Passenger details are saved.
  6. Reprice - Fetches the latest price to confirm before booking.
  7. Book Flight - The flight is booked.
  8. Get Booking Details - Retrieves booking confirmation and details.