Select Flight

This API Endpoint makes a POST request to the Travu API in other to make an itinerary selection request based on the selected option from the customer. itinerary get stale fairly quickly, and when they do, you are no longer able to book them. Once a customer has picked an itinerary that works for them, you should retrieve the itinerary to get the most up to date version. You should do this when the customer picks an itinerary before you ask for his full passenger details and payment information.

To get the latest version of the offer, you can use the itinerary with the "Flight Select" endpoint:

ENDPOINT URL

REQUEST TYPE: POST

LIVE BASE URL: https://api.travu.africa/api/v1/flight-select

TEST BASE URL: https://api.travu.africa/test/api/v1/flight-select

Remember to Pass your Authorization Token for this request to go through, read about Authorization here.

BODY PAYLOAD

The Body Payload is as below;

{
  "id": "WAAAAB+LCAAAAAAABACrVgpOTSxKzvBOrVSyUvK2zClItogKyQ0IiTcs83MzyvULzAxU0lFyy8lMzyjxTAGqSUszMjRMMUjTTTVPS9U1sUwy0000szTQNU9NSk1MTTIxN7FIUaoFAB6R3kdYAAAA",
  "currency": "NGN"
}

RESPONSE

The Response for the above request should bring the itinerary in the below format if successful;

{
    "order_status": "confirmed",
    "order_id": "49008",
    "order_name": "Abiah Johnie",
    "order_email": "[email protected]",
    "phone_number": "09100000000",
    "order_amount": 13000,
    "trip_id": "96855",
    "origin_id": "45",
    "destination_id": "63",
    "order_ticket_date": "2021-07-03",
    "order_total_seat": 2,
    "order_seats": "1,2",
    "amount_per_seat": "6500.00",
    "order_number": "03410a4b",
    "vehicle_no": "1st Bus (15)",
    "narration": "UMUAHIA TO LAGOS - AJAH",
    "departure_terminal": "UMUAHIA",
    "destination_terminal": "LAGOS - AJAH",
    "seat_details": [
        {
            "fare": "6500.00",
            "title": "Mr",
            "age": "32",
            "sex": "M",
            "name": "Abiah Johnie",
            "email": "[email protected]",
            "phone": "09100000000",
            "blood": "A+",
            "next_of_kin": "Benjamin Johnnie",
            "next_of_kin_phone": "09000000000",
            "seat_number": "1"
        },
        {
            "fare": "6500.00",
            "title": "Mr",
            "age": "32",
            "sex": "M",
            "name": "Barnabas Johnie",
            "email": "[email protected]",
            "phone": "09057568594",
            "blood": "A+",
            "next_of_kin": "Miracle Johnnie",
            "next_of_kin_phone": "03000000000",
            "seat_number": "2"
        }
    ],
    "provider": "GUO"
}

Reference to Authentication for possible authentication errors that might occur during this request.

Last updated