Flight API GetBookingsListByEmployee

Flight API

GetBookingsListByEmployee

This API is useful to get a list of bookings made by the user.

Path: /api/GetBookingsListByEmployee

Method Type :POST

Sample Request:


{
"UserId": 24635,
"ProductId": 1, (For Flights)
"Name": "",
"BookingReferenceId": "",
"BookingReferenceNumber": "",
"BookingFromDate": "",
"BookingToDate": "",
"TravelFromDate": "",
"TravelToDate": "",
"Email": "",
"BookingStatus": "",
"TripPurpose": ""
}

* BookingFromDate, BookingToDate, TravelFromDate, and TravelToDate must always be in the ‘yyyy-MM-dd’ format.

TripPurpose: There are 3 trip purposes as of now. Below are details:

  1. Monthly Ticket
  2. Discounted Ticket
  3. Business

BookingStatus: Below are the types of booking status

  1. Success
  2. Failed
  3. Cancelled
  4. On Hold
  5. Pending Cancellation
  6. Pending PNR
  7. Pending Ticket
  8. Confirmed
  9. Needs Approval
  10. Approved
  11. Rejected

Note: The endpoint APIs for retrieving booking details based on the product will be the same. For the Flight as a product Client needs to pass int as 1. There will be a change in request and response in case of other products.

Sample Response:

[
{
"UserId": 24635,
"BookingNo": 40340,
"BookingReferenceId": "R3W7HO",
"BookingReferenceNumber": "ATSF40340",
"Name": "John Doe",
"Email": "Johndoe@mail.com",
"BookingDate": "17 Jun 2025",
"TravelDate": "27 Nov 2025",
"BookingStatus": "Confirmed",
"Route": " RUH-NUM",
"Price": "2434.55",
"TripPurpose": "Monthly Ticket"
}
]