Set out of Order (Block Room)

This API helps to block a room due to maintenance purposes thereby making a room unavailable for sale. This API can return data in JSON formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/json

Parameter

NameData TypeDescriptionExample
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
RoomID *INT(20) ID of Room 123450000000000001
RoomtypeID *INT(20) ID of RoomType 123450000000000001
FromDate *Date From date. [Format: yyyy-mm-dd] 2020-07-12
ToDate *DateTo date. [Format: yyyy-mm-dd] 2020-07-13
ReasonVARCHAR(300) Reason for out of order.Block Room,
Maintenance, etc

Request 

{
"RES_Request": {
"Request_Type": "SetoutofOrder",
"Authentication": {
"HotelCode": "xxxx",
"AuthCode": "xxxxxxxxxxxx"
},
"Rooms": [
{
"RoomID": "123450000000000004",
"RoomtypeID":"123450000000000006",
"FromDate": "2020-05-15",
"ToDate": "2020-05-16",
"Reason": "Block Room"
}
]}
}

Response

NameData TypeDescription Example
Success.SuccessMsg Generate Success Response Message Rooms Blocked Successfully
Errors.ErrorCode Response Error Code 0, 301 etc
Errors.ErrorMessage Generate Response Message Unauthorized Request. Please check hotel code and authentication code

Success

{
"Errors": {
"ErrorCode": "0",
"ErrorMessage": "Success"
},
"Success": {
"SuccessMsg": "Rooms Blocked Successfully"
}
}

Error Codes

Error CodeError Name
100Missing required parameters
500Error occurred during processing.
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
103Room ID is missing
104Roomtype ID is missing
105From Date is missing.
106From Date is not a valid date
107To Date is missing
301Unauthorized Request. Please check hotel code and authentication code
302Unauthorized Request. Integration is not allowed
303Auth Code is inactive
201Unauthorized request.(Request Type) request is not valid for this hotel code
202Unauthorized request. Hotel code is not active
115Reason is missing
108(To Date) – To Date is not a valid date
109From Date (From Date) To Date : (To Date) – Please check From and To date. To Date should be greater than fromdate
110From Date is not a valid date, FromDate should be greater than HotelDate
128Room/s cannot be blocked for selected dates

Click here to Register