Travu Developer Documentation
Contact Support
  • Introduction
  • API Reference
  • Authentication
  • Postman Collection
  • Bus Booking
    • Get Bus Trips
      • Get List of States
      • Seat Layouts
    • Request Bus Booking
  • Flight Booking
    • Get Flight List
      • Get List of Airports
    • Select Flight
    • Tentative Flight Booking
    • Complete Flight Ticketing
  • Cancelling an order
  • Get Booking Details
  • Get Bookings History
  • Response Codes
  • Company
    • Travu Terms & Policies
    • Use Policy
  • Frequently asked Questions (FAQ)
Powered by GitBook
On this page
  • ENDPOINT URL
  • BODY PAYLOAD
  • RESPONSE

Was this helpful?

Get Booking Details

This is an endpoint that provides the API user access to real-time information of a particular booking.

PreviousCancelling an orderNextGet Bookings History

Last updated 2 years ago

Was this helpful?

This API Endpoint makes a GET request to the Travu service in other to get a response of BOOKING DETAILS by simply passing the booking number with authorization, this can also be used to reconfirm the status of any ticket.

ENDPOINT URL

REQUEST TYPE: GET

LIVE URL:

TEST URL:

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

BODY PAYLOAD

This is a GET request that does not expect a body, simply authorize appropriately and pass the "Booking number" through the base URL. We usually return a "booking_number"(bus) and "booking_id" (flight) after a successful booking.

RESPONSE

The Response for this request should bring the BOOKING DETAILS in the below format;

{
    "status": 200,
    "error": false,
    "message": "Data fetched successfully",
    "data": {
        "id": 16,
        "user_id": "7",
        "provider": "GUO",
        "amount": "14000",
        "charged_amount": "13440",
        "status": "confirmed",
        "booking_number": "fe564148",
        "details": "{\"passengers\":[{\"fare\":\"6500.00\",\"title\":\"Mr\",\"age\":\"Adult\",\"sex\":\"M\",\"name\":\"Abijah Johnnie\",\"email\":\"[email protected]\",\"phone\":\"07057568594\",\"next_of_kin\":\"Benjamin Johnnie\",\"next_of_kin_phone\":\"09000000000\",\"seat_number\":\"4\"},{\"fare\":\"6500.00\",\"title\":\"Mr\",\"age\":\"Child\",\"sex\":\"M\",\"name\":\"Barnabas Johnnie\",\"email\":\"[email protected]\",\"phone\":\"09057568594\",\"next_of_kin\":\"Miracle Johnnie\",\"next_of_kin_phone\":\"03000000000\",\"seat_number\":\"5\"}],\"narration\":\"UMUAHIA TO LAGOS - AJAH\",\"vehicle_no\":\"1st Bus (15)\",\"order_ticket_date\":\"2021-07-09\"}",
        "created_at": "2021-07-09T09:33:44.000000Z",
        "updated_at": "2021-07-09T09:33:44.000000Z"
    }
}

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

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

https://api.travu.africa/api/v1/booking/booking_number
https://api.travu.africa/test/api/v1/booking/booking_number
here