Get Flight List

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.

ENDPOINT URL

REQUEST TYPE: POST

API BASE URL: https://access.mytrip.ng/api/v1/search_flight (Coming soon)

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;

Here is an Extra endpoint to help you with this, Get List of Airports

BODY PAYLOAD

The Body Payload is as below;

Payload Example for a one way ticket.

{
  "type": "Oneway",
  "class": "Y",
  "adult": 1,
  "children": 0,
  "infant": 0,
  "currency": "NGN",
  "itineraries": [
      {
      "Departure": "LOS",
      "Destination": "ABV",
      "DepartureDate": "04/26/2023"
      }
  ]
}

Payload Example for a Return ticket.

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.

Last updated

Was this helpful?