Vacation Rental
Bookings
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
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 |
Bookings
Todays CheckIn-Checkout
This API provides supplied room information for today’s arrival-departure like reservation no, room no and arrival-departure date-time . 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_calendar” | |
hotel_id * | INT(11) | Unique Hotel code | XXXX |
report_type * | VARCHAR(150) | 3 types of values can be passed with this parameter, checkin – To get today’s Arrivals checkout – To get today’s departure both – To get today’s arrivals & departures | both |
Request
{ "request_type": "get_calendar", "body": { "hotel_id": "xxxx", "report_type":"both" } }
Response
Name | Data Type | Description | Example |
status | String | Failure or success of the request Values: Success, Error | Success |
data.* | Integer | Here * means property ID | xxxx |
data.*.arrivals and/or data.*.departures | String | arrivals or departures parameter will be available according to the value of report_type sent in request | arrivals |
data.*.arrivals.reservation_id | Integer | Reservation ID | 938 |
data.*.arrivals.room_code | String | Room no. of particular room | L3 |
data.*.arrivals.arrival_date_time | Date | Arrival-departure date & time in the below format. YYYY-MM-DD HH:MM:SS | 2020-03-29 12:00:00 |
error_code | – | Error code in case of failure | 101 |
error_message | – | Error Message in case of failure | Invalid Authentication Data |
Success
{ "status": "success", "data": { "12345": { "arrivals": [ { "reservation_id": "32", "room_code": "125", "arrival_date_time": "2020-05-09 12:00:00" } ] } } }
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 |
Bookings
Retrieve Physical Rooms
This API provides physical room information for your property. 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_rooms” | |
hotel_id * | INT(11) | Unique Hotel code | XXXX |
Request
{ "request_type": "get_rooms", "body": { "hotel_id": "xxxx" } }
Response
Name | Data Type | Description | Example |
status | String | Failure or success of the request Values: Success, Error | Success |
data.rooms.room_id | Integer | Room Id | 1234500000000000001 |
data.rooms.room_name | String | Name of room | Studio Room |
data.rooms.room_code | String | Room codes | 106 |
error_code | – | Error code in case of failure | 105 |
error_message | – | Error Message in case of failure | Invalid Reservation ID |
Success
{ "status": "success", "data": { "rooms": [ { "room_id": "1234500000000000001", "room_name": "Studio", "rooms": "106", "room_code": "106 : Active" }, { "room_id": "1234500000000000002", "room_name": "Double Bedroom Suite", "rooms": "107,111,112,113", "room_code": "107 : Active,111 : Active,112 : Active,113 : Active" }, ] } }
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 |
Bookings
Reserved Rooms Calendar
This API helps you to populate a stayview calendar with needful information for specific date ranges on your selected rooms. 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_calendar” | |
hotel_id * | INT(11) | Unique Hotel code | XXXX |
room_id * | INT(20) | List of room Ids(If a date range is same for all Room IDs then all Ids will be listed in a single block else separate block will be there for a different date range) | 1234500000000001, 1234500000000002 |
room_code * | INT(20) | List of room codes | “102”, “104”,”108″ |
from_date * | Date | Start date of calendar information is to be requested Format: YYYY-MM-DD | 2020-06-15 |
to_date * | Date | End date of calendar information is to be requested Format: YYYY-MM-DD | 2020-07-15 |
Request
{ "request_type": "get_calendar", "body": { "hotel_id": "xxxx", "rooms": [{ "room_id": ["1234500000000000002", "1234500000000000003"], "room_code": ["107", "111", "112", "113"], "from_date": "2020-04-15", "to_date": "2020-05-15" }, { "room_id": ["1234500000000000007"], "room_code": ["125","126"], "from_date": "2020-04-15", "to_date": "2020-05-15" } ] } }
Response
Name | Data Type | Description | Example |
status | String | Failure or success of the request Values: Success, Error | Success |
data.* | Integer | Here * means Room type ID | 1234500000000001 |
data.*.room_name | String | Name of Room | Super Deluxe |
data.*.room_name.date | Date | Calendar DateFormat: YYYY-MM-DD | 2020-03-01 |
data.*.room_name.status | String | Status of the roomValues : Reserved: If book is BookedBlocked: If sell is stopped for particular reason | Reserved |
data.*.room_name.reservation_info | – | If Room status is blocked then the Value of this Parameter will be blank else if room is booked, then reservation details will be supplied. | – |
data.*.room_name.reservation_info.reservation_id | String | Reservation Id | |
data.*.room_name.reservation_info.channel | String | Channel name & channel hotel code from where a booking has been come in below formatname_channelHotelCode | |
data.*.room_name.reservation_info.guest_name | String | Name of guest | Guest Name |
data.*.room_name.reservation_info.check_in | Date | Date of Check-in | 2020-04-01 12:00:00 |
data.*.room_name.reservation_info.check_out | Date | Date of Check-Our | 2020-05-03 12:00:00 |
error_code | – | Error code in case of failure | 101 |
error_message | – | Error Message in case of failure | Invalid Authentication Data |
Success
{ "status": "success", "data": { "1234500000000000002": { "room_info": "No Booking/Blocks are available for supplied Date Range" }, "1234500000000000003": { "room_info": "No Booking/Blocks are available for supplied Date Range" }, "1234500000000000007": { "room_name": "Stander", "room_info": [ { "room_code": "125", "date": "2020-05-09", "status": "Reserved", "reservation_info": { "folios": { "33": { "Room Charges": "450.0000", "Service Tax": "100.0000", "All in Package [Qty -2.0000]": "300.0000" } }, "reservation_id": "32", "guest_name": "Mam. Daya", "channel": "", "remark": "", "check_in": "2020-05-09 12:00:00", "check_out": "2020-05-10 11:00:00", "booking_status": "Confirmed Reservation", "total_amount": 850, "currency": "INR", "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 |
Bookings
Room Sales Data
This API provides you sales information for rooms for a specific period. 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_sales_report” | |
hotel_id * | INT(11) | Unique Hotel code | XXXX |
room_id * | INT(20) | List of room Ids (If a date range is same for all Room IDs then all Ids will be listed in a single block else separate block will be there for a different date range) | 1234500000000001, 1234500000000002 |
from_date * | Date | Start date of calendar information is to be requested Format: YYYY-MM-DD | 2020-06-25 |
to_date * | Date | End date of calendar information is to be requested Format: YYYY-MM-DD | 2020-07-10 |
Request
{ "request_type": "get_sales_report", "body": { "hotel_id": "xxxx", "rooms": [{ "room_id": ["1234500000000000001", "1234500000000000002"], "from_date": "2020-04-25", "to_date": "2020-05-08" }] } }
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 Name |
data.Report.* | String | Here * means Room type ID | 1234500000000001 |
data.Report.*.room_name | String | Name of Room | Super Deluxe |
data.Report.*.# | String | Here # means Room Code | L01 |
data.Report.*.#.room_nights | Integer | Total available rooms for the month. | 7 |
data.Report.*.#.room_sold | Integer | No. of room sold only. (not included complimentary) | 5 |
data.Report.*.#.complementary | String | Complimentary | – |
data.Report.*.#.occupancy | Integer | Occupancy of room | 4 |
data.Report.*.#.adr | String | Average Daily rate | 950 |
data.Report.*.#.pax | String | No. of pax in Room | 4 |
data.Report.*.#.room_charges | Long | Room Charges | 85 |
data.Report.*.#.extra_charges | Long | Extra Charged | 4 |
data.Report.*.#.channel | String | Channel name & channel hotel codename_channelHotelCode (Which are mapped with this room type) | Booking.com_11111 |
error_code | – | Error code in case of failure | 105 |
error_message | – | Error Message in case of failure | Invalid Reservation ID |
Success
{ "status": "success", "data": { "hotel_id": "xxxx", "hotel_name": "Hotel Name", "report": [ { "1234500000000000001": { "106": { "room_nights": 14, "room_sold": 0, "complementary": 0, "occupancy": 0, "adr": 0, "pax": 0, "room_charges": 0, "extra_charges": 0, "channel": "" }, "room_name": "Studio" } }, { "1234500000000000002": { "107": { "room_nights": 14, "room_sold": 0, "complementary": 0, "occupancy": 0, "adr": 0, "pax": 0, "room_charges": 0, "extra_charges": 0, "channel": "" }, "111": { "room_nights": 14, "room_sold": 0, "complementary": 0, "occupancy": 0, "adr": 0, "pax": 0, "room_charges": 0, "extra_charges": 0, "channel": "" }, "112": { "room_nights": 14, "room_sold": 0, "complementary": 0, "occupancy": 0, "adr": 0, "pax": 0, "room_charges": 0, "extra_charges": 0, "channel": "" }, "113": { "room_nights": 14, "room_sold": 0, "complementary": 0, "occupancy": 0, "adr": 0, "pax": 0, "room_charges": 0, "extra_charges": 0, "channel": "" }, "room_name": "Double Bedroom Suite" } } ] } }
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 |