Skip to main content

Booking Detail & Pricing API

Overview​

Retrieves full room/flight options, fare breakdowns, baggage policies, amenities, and exact pricing details for a selected Hotel or Flight.

  • Endpoint: /api/search/details (or /api/search/hotel-details, /api/search/flight-details)
  • Method: GET
  • Headers:
    • Authorization: Bearer <token> (Optional/Standard JWT)

Query Parameters​

ParameterTypeRequiredDescription
typeEnumYesDetail target vertical: HOTEL or FLIGHT
id / hotelId / hidStringConditionalHotel property ID (for type=HOTEL) or Flight Price ID (for type=FLIGHT)
priceIdStringConditionalSpecific Flight Price ID from search response
checkIn / checkInDateStringNoCheck-in date in YYYY-MM-DD format
checkOut / checkOutDateStringNoCheck-out date in YYYY-MM-DD format
adults / guestsNumberNoAdult guest count per room (Default: 2)
childrenNumberNoChild guest count per room (Default: 0)
childAges / childAgeString / ArrayNoChild ages in years
roomsArray / JSONNoOptional array of room objects [{ adults, children, childAge }]
currencyStringNo3-letter currency code (Default: INR)
nationalityStringNoGuest nationality code (Default: 106)
correlationIdStringNoTracking ID (auto-generated if omitted)
timeoutMsNumberNoRequest timeout in milliseconds (Default: 13000)

Note: At least one identifier (id, hotelId, hid, or priceId) must be provided.

Response Example - Hotel Details (200 OK)​

{
"success": true,
"data": {
"type": "HOTEL",
"query": {
"type": "HOTEL",
"hotelId": "HT-4001"
},
"details": {
"hotelDetail": {
"hotelId": "HT-4001",
"name": "Taj Lands End",
"starRating": 5,
"address": "Bandra West, Mumbai",
"rooms": [
{
"roomId": "RM-DELUXE-01",
"name": "Deluxe Sea View Room",
"pricing": {
"baseFare": 12500,
"taxes": 2250,
"totalPrice": 14750
}
}
]
}
}
},
"message": "Hotel detail view & pricing fetched successfully"
}

Response Example - Flight Review & Pricing (200 OK)​

{
"success": true,
"data": {
"type": "FLIGHT",
"query": {
"type": "FLIGHT",
"priceId": "PRICE-FL-9021"
},
"details": {
"tripInfos": [
{
"priceInfo": {
"baseFare": 4200,
"taxes": 650,
"totalPrice": 4850
},
"baggageAllowance": {
"checkIn": "15 KG",
"cabin": "7 KG"
}
}
]
}
},
"message": "Flight detail view & pricing fetched successfully"
}