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 |