Reservation Details of a Room

This API provides basic booking information for a room. The API can return data in JSON formats. The web service responds to HTTP POST requests.

End Point URL

Note: You need set Authcode in Header.

Header

Content-Type: application/json; AUTH_CODE: XXXXXXXXXXXXXXXXX

Parameter

NameData TypeDescription Example
request_type *VARCHAR(150)Use Keyword “get_reservation”
hotel_id *INT(11)Property IDXXXX
reservation_id *INT(20)To get the details of the reserved room 25

Request 

{   
"request_type": "get_reservation",
    "body": {
            "hotel_id": "XXXX",
            "reservation_id": "25"
    }
}

Response

NameData TypeDescription Example
statusStringFailure or success of the request
Values: Success, Error
Success
data.hotel_idIntegerID of Hotelxxxx
data.hotel_nameStringName of HotelHotel
data.room_idIntegerID of Room1234500000000002
data.room_nameStringName of RoomSuper Deluxe
data.reservation_idIntegerReservation IDRES124
data.guest_nameStringName of the GuestIon Morgal
data.check_inDateCheck-in DateRES123
data.check_outDateCheck-out Date2020-03-30 11:00:00
data.total_amountLongTotal Booking amount2950
data.currencyStringCurrencyINR
data.channelStringChannel name & channel hotel code from where a booking has been come in below formatname_channelHotelCode
data.payment_typeStringPayment Type Values : PayAtHotel, AgencyCollectPay At Hotel
errorCodeError code in case of failure105
errorMessageError Message in case of failureInvalid Reservation ID

Success

{ "status": "success",
 "data": [
  {
   "hotel_id": "xxxx",
   "hotel_name": "Hotel",
   "room_id": "1234500000000000004",
   "room_name": "Delux",
   "room_code": "101",
   "reservation_id": "25",
   "booking_status": "Confirmed Reservation",
   "guest_name": "Mr. Ion Morgal",
   "check_in": "2020-03-29 12:00:00",
   "check_out": "2020-03-30 11:00:00",
   "remark": "",
   "total_amount": 2950,
   "currency": "INR",
   "channel": "",
   "payment_type": "Pay At Hotel"
  }
 ]
}

Error Codes

Error CodeError Name
101Invalid Hotel Id
102Invalid Authentication
103Blank Request
104Invalid Request Format
105Missing Required Parameter
106Invalid Reservation ID
107Invalid Date Format
108Invalid Date Range
109Currently Data can be requested for max 15 days
110Invalid Room Id
111IP Address is not Authorised
112Invalid Request Method
113Hotel Code is not Active
114Invalid Room Code or not associated with supplied room ID
115Internal Problem

Click here to Register