List Confirmed Bookings (Super Admin)
Retrieve a paginated list of all actual bookings that are currently in the CONFIRMED state. You can filter by companyId (in req.query or req.body) to retrieve bookings for a specific company, or retrieve them globally across all companies. This endpoint is dedicated to the Super Admin dashboard.
Endpoint
GET / POST /api/booking-requests/confirmed-bookings
Request Parameters (Query or Body)
| Field | Type | Required | Description |
|---|---|---|---|
companyId | string | No | Filter by a specific company's ID. |
travelType | string | No | Filter by travel type (FLIGHT, HOTEL, CAB, INSURANCE, FOREX). |
page | number | No | Page number for pagination. Default is 1. |
limit | number | No | Number of records per page. Default is 20. |
Headers
| Key | Value | Required |
|---|---|---|
Authorization | Bearer <token> | Yes |
Response Example
{
"success": true,
"data": [
{
"id": "e44d375c-bd62-43cf-bfde-e2d63ab21e15",
"bookingRefNumber": "BK-HOTEL-L12345678",
"companyId": "cmp-uuid",
"userId": "user-uuid",
"travelType": "HOTEL",
"status": "CONFIRMED",
"pnr": "LOCAL-XXXXX",
"isLocalProperty": false,
"totalCost": "15000.00",
"requestRaisedRate": "15000.00",
"currentRate": "15000.00",
"approvedCost": "15000.00",
"user": {
"id": "user-uuid",
"firstName": "John",
"lastName": "Doe",
"email": "john@example.com",
"phone": "+919876543210"
},
"company": {
"id": "cmp-uuid",
"name": "Acme Corp"
},
"hotelDetails": [
{
"hotelName": "Hotel Property",
"checkIn": "2026-10-07T00:00:00.000Z",
"checkOut": "2026-10-08T00:00:00.000Z",
"ratePerNight": "15000.00",
"confirmationNumber": "LOCAL-XXXXX"
}
],
"flightDetails": [],
"cabDetails": []
}
],
"message": "Confirmed bookings retrieved successfully",
"pagination": {
"totalItems": 1,
"totalPages": 1,
"currentPage": 1,
"pageSize": 20
}
}