Housekeeping

Unblock room

This API helps to unblock a room thereby making a room available 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 123450000000000004
RoomtypeID *INT(20) ID of RoomType 123450000000000006
FromDate *Date From date. [Format: yyyy-mm-dd] 2020-05-15
ToDate *DateTo date. [Format: yyyy-mm-dd] 2020-05-16

Request 

{
"RES_Request": {
"Request_Type": "UnblockRoom",
"Authentication": {
"HotelCode": "xxxx",
"AuthCode": "xxxxxxxxxxxx"
},
"Rooms": [
{
"RoomID": "123450000000000004",
"RoomtypeID":"123450000000000006",
"FromDate": "2020-05-15",
"ToDate": "2020-05-16"
},
{
"RoomID": "123450000000000004",
"RoomtypeID": "123450000000000007",
"FromDate": "2020-05-19",
"ToDate": "2020-05-22"
}
]}
}

Response

NameData TypeDescription Example
Success.SuccessMsg Generate Success Response Message Rooms Unblocked 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 Unblocked 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
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
110Unblock is not allowed for past dates. Your property current working date is (Hoteldate)
128(Room ID) – There is no block on this room, so unblock is not possible.

Housekeeping

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

Housekeeping

Update Room Status

This API helps to update housekeeping information on an inhouse room.  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 *BIGINT(20) ID of Room 123450000000000001
unitid *BIGINT(20) Unit ID 123450000000000001
hkstatus *VARCHAR(300) Housekeeping Status Clean
hkremarksVARCHAR(300) Housekeeping Remarks Cleaned

Request 

 {
"authcode":"xxxxxxxxxxxx",
"hotel_code":"xxxx",
 "updatehkdata": [{
      "hotel_code": "xxxx",
       "roomid": "123450000000000001", 
       "unitid": "1213450000000000001", 
       "hkstatus": "Clean",
       "hkremarks": ""
      },{
       "hotel_code": "xxxx",
       "roomid": "123450000000000002", 
       "unitid": "123450000000000003", 
       "hkstatus": "Dirty",
       "hkremarks": ""
 }]
}

Response

NameData TypeDescription Example
statusStringUpdate status1
messageStringMessageSuccess
warningIntegerWarningThis request will not be process as hotel_code is invalid.

Success

{
    "status": "0",
    "message": "Success"
}

Error Codes

Property Deactivated: {"errorcode":"1","message":"This property has been deactivated."}
OpenAPI Record invalid: {"errorcode":"1","message":" Unauthorized Request. Please check hotel code and authentication code "}
OpenAPI Deactivated: {"errorcode":"1","message":" Auth Code is inactive. "}
OpenAPI Request: {"errorcode":"1","message":"Property is not authorized to access this api. "}

Housekeeping

Retrieve Inhouse Room Status

This API provides housekeeping information of todays vacant and occupied rooms and also provides check in guest information.  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 code XXXX
AuthCode *VARCHAR(300)Unique Authentication code XXXXXXXXXXXXXXXXX

Request 

{
     "authcode": "xxxxxxxxxxxx",
      "hotel_code":"xxxx"
}

Response

NameData TypeDescriptionExample
roomlist.hotelcodeIntegerHotel unique codexxxx
roomlist.roomidIntegerID of Room123450000000000001
roomlist.unitidIntegerUnit ID123450000000000001
roomlist.roomnameStringName Of Room101
roomlist.roomtypeidIntegerRoomType ID123450000000000004
roomlist.roomtypenameStringName of RoomTypeDelux
roomlist.isblockedStringIs BlockedNo
roomlist.hkstatusStringHousekeeping StatusClean
roomlist.hkremarksStringHousekeeping Remarkscleaned
roomlist.roomstatusStringStatus of RoomAvailable
checkinguestlist.hotel_codeIntegerHotel unique codexxxx
checkinguestlist.reservationnoIntegerReservation Number10
checkinguestlist.guestnameStringName of GuestJohn Lenth
checkinguestlist.emailStringEmail of Guestjohnl123@example.com
checkinguestlist.addressStringAddress of Guest123, abc building, USA
checkinguestlist.roomStringRoom Name101
checkinguestlist.roomtypeStringRoom TypeDelux
checkinguestlist.ratetypeStringRate typeFrequent Traveler
checkinguestlist.bookingdateDatetimeDate of Booking2020-04-11 16:44:47
checkinguestlist.checkindateDatetimeDate of CheckIn2020-04-17 15:44:47
checkinguestlist.checkoutdateDatetimeDate of CheckOut2020-04-20 19:44:47
checkinguestlist.businesssourceIntegerBusiness source unique id123450000000000001
checkinguestlist.marketIntegerMarket unique id123450000000000001
checkinguestlist.travelagentIntegerTravel Agent id123450000000000001
checkinguestlist.companyStringName of CompanyPing Man
checkinguestlist.tavouchernoIntegerTravel agent Voucher number1
checkinguestlist.AdultIntegerNumber of adult2
checkinguestlist.ChildIntegerNumber of child1
checkinguestlist.housekeepingremarks StayoverStringHousekeeping remarksCleaned
checkinguestlist.bookingstatusStringStatus of booking
such as
Arrival,Check Out,
Due Out,Confirmed Reservation,
Void,Cancel,No Show,
Maintenance Block,Unconfirmed Reservation,Stayover,
Unblock,Dayuse Reservation,Dayuse
Stayover

Success

{
    "roomlist": [
        {
            "hotel_code": "xxxx",
            "roomid": "123450000000000001",
            "unitid": "123450000000000001",
            "roomname": "101",
            "roomtypeid": "123450000000000004",
            "roomtypename": "Delux",
            "isblocked": "No",
            "hkstatus": "Dirty",
            "hkremarks": "",
            "roomstatus": "Available"
        },
        {
            "hotel_code": "xxxx",
            "roomid": "123450000000000002",
            "unitid": "123450000000000002",
            "roomname": "102",
            "roomtypeid": "123450000000000004",
            "roomtypename": "Delux",
            "isblocked": "No",
            "hkstatus": "",
            "hkremarks": "",
            "roomstatus": "Available"
        }
        ],
    "checkinguestlist": [
        {
            "hotel_code": "xxxx",
            "reservationno": "8",
            "guestname": "Mr. John Lenth",
            "email": "johnl123@example.com",
            "address": "123, abc building, USA",
            "room": "103",
            "roomtype": "Twin",
            "ratetype": "Frequent Traveller",
            "bookingdate": "2020-04-11 16:44:47",
            "checkindate": "2020-03-17 13:37:16",
            "checkoutdate": "2020-03-20 17:42:00",
            "businesssource": "",
            "market": "",
            "travelagent": "",
            "company": "",
            "tavoucherno": "",
            "Adult": "2",
            "Child": "1",
            "housekeepingremarks": "",
            "bookingstatus": "Stayover"
        }
    ]
}

Error Codes

Property Deactivated: This property has been deactivated
OpenAPI Record invalid: Unauthorized Request. Please check hotel code and authentication code
OpenAPI Deactivated: Auth Code is inactive.
OpenAPI Request: Property is not authorized to access this api.

Click here to Register