Complete Flight Ticketing

This API Endpoint makes a POST request to the Travu Booking service in other to make a FINAL BOOKING request to to the associated airline operators based on the selected itinerary. We are finally ready to make the booking, in the Travu API, this is called a Flight Ticketing.

This makes an actual ticket reservation for your customer, obviously after you must have collected payment from customer.

ENDPOINT URL

REQUEST TYPE: POST

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

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

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

BODY PAYLOAD

The Body Payload is as below;

{
  "booking_id": "2304230400001",
  "pnr_number": "KVS34W"
}

RESPONSE

The Response for the above request should bring the BOOKED DETAILS/RECEIPT 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"
}

The "status" of a transaction could be confirmed, failed or canceled.

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

Last updated