hotel-api-GetBookingDetailsByDate

Hotel API 1.7

GetBookingDetailsByDate

This endpoint retrieves booking details for bookings made within the specified date range. The request requires fromDate and toDate parameters in yyyy-MM-dd format.

Path: /api/HotelApi/GetBookingDetailsByDate

Method Type :Post

Method Type :application/json

Request fields:

PropertyDescription
fromDate
Required
YYYY-MM-DD
toDate
Required
YYYY-MM-DD

Request example:

{
  "fromDate": "2026-12-15",
  "toDate": "2027-12-17"
}

Response fields:

PropertyDescription
bookingStatus
String
Current status of the booking, such as Cancelled.
bookingReferenceNumber
String
Unique booking reference number associated with the booking.
bookingDate
String
Date on which the booking was created, returned in DD-MM-YYYY format.

cancellationCharge

Decimal

Cancellation charge applicable to the cancelled booking. Returns 0 if no cancellation charge is applicable.

Response fields:

{
  "bookingStatus": "Cancelled",
  "bookingReferenceNumber": "CLBH52366",
  "bookingDate": "23-11-2026",
  "cancellationCharge": 0
}

Important notes:

  1. The bookingRef parameter is mandatory and is used to identify the booking.
  2. The bookingDate is returned in DD-MM-YYYY format.
  3. The cancellationCharge represents the cancellation charge applicable to the cancelled booking.