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
Parameter
Name | Data Type | Description | Example |
request_type * | VARCHAR(150) | Use Keyword “get_reservation” | |
hotel_id * | INT(11) | Property ID | XXXX |
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
Name | Data Type | Description | Example |
status | String | Failure or success of the request Values: Success, Error | Success |
data.hotel_id | Integer | ID of Hotel | xxxx |
data.hotel_name | String | Name of Hotel | Hotel |
data.room_id | Integer | ID of Room | 1234500000000002 |
data.room_name | String | Name of Room | Super Deluxe |
data.reservation_id | Integer | Reservation ID | RES124 |
data.guest_name | String | Name of the Guest | Ion Morgal |
data.check_in | Date | Check-in Date | RES123 |
data.check_out | Date | Check-out Date | 2020-03-30 11:00:00 |
data.total_amount | Long | Total Booking amount | 2950 |
data.currency | String | Currency | INR |
data.channel | String | Channel name & channel hotel code from where a booking has been come in below formatname_channelHotelCode | |
data.payment_type | String | Payment Type Values : PayAtHotel, AgencyCollect | Pay At Hotel |
errorCode | – | Error code in case of failure | 105 |
errorMessage | – | Error Message in case of failure | Invalid 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 Code | Error Name |
101 | Invalid Hotel Id |
102 | Invalid Authentication |
103 | Blank Request |
104 | Invalid Request Format |
105 | Missing Required Parameter |
106 | Invalid Reservation ID |
107 | Invalid Date Format |
108 | Invalid Date Range |
109 | Currently Data can be requested for max 15 days |
110 | Invalid Room Id |
111 | IP Address is not Authorised |
112 | Invalid Request Method |
113 | Hotel Code is not Active |
114 | Invalid Room Code or not associated with supplied room ID |
115 | Internal Problem |