hotel-api-GetBookingDetails

Hotel API 1.7

GetBookingDetails

Retrieves booking information using a unique booking reference number. The response provides the booking status, booking reference number, booking date, and cancellation charge applicable to the cancelled booking.

Path: /api/HotelApi/GetBookingDetails

Method Type :Post

Method Type :application/json

Request fields:

PropertyDescription

bookingRef

Required

Unique booking reference number used to retrieve the corresponding booking details.

Request example:

{
  "bookingRef": "CLBH52366"
}

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.