This API Endpoint makes a POST request to the Travu API in other to get a response of AVAILABLE FLIGHT TRIPS from all our aggregated flight operators based on the requested DEPARTURE, DESTINATION, DATE etc.
Remember to Pass your Authorization Token for this request to go through, read about Authorization here.
To build the payload you'll need the flight itinerary - which should include the origin(s), destination(s) and departure date(s) - and information about the passengers. Here's how we search for flights:
Our Supported Departure and Destination Strings to be used can be derived from the Get List of Airports Endpoint;
Payload Example for a Multi destination ticket, this supports between 2 to 6 destinations.
RESPONSE
The Response for this request should bring the TRIP DETAILS in the below format if;
The "type" parameter is "Oneway" which should come with one objects in the "Itineraries" of Array.
The "type" parameter is "Return" which should come with one objects in the "Itineraries" of Array.
The "type" parameter is "Multidestination" which should come with one objects in the "Itineraries" of Array, comes with a minimum of two and a maximum of six objects in the "Itineraries" of Array.
Reference to Authentication for possible authentication errors that might occur during this request.