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

Content-Type: application/json; AUTH_CODE: xxxxxxxxxxxxx

Parameter

NameData TypeDescription Example
request_type *VARCHAR(150)Use Keyword “get_rooms”
hotel_id *INT(11)Unique Hotel codeXXXX

Request 

{   
"request_type": "get_rooms",
    "body": {
        "hotel_id": "xxxx"
    }
}

Response

NameData TypeDescription Example
statusStringFailure or success of the request
Values: Success, Error
Success
data.rooms.room_idIntegerRoom Id1234500000000000001
data.rooms.room_nameStringName of roomStudio Room
data.rooms.room_codeStringRoom codes 106
error_codeError code in case of failure105
error_messageError Message in case of failureInvalid 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 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