4.5. Managing Room Status
POST /cm/room/status
Description
This section outlines the ability to active / inactive / delete property’s room
Body parameter
List of Rooms in OTA2017B format which specifies the property and room’s status
Name : body
Flags : required
Type : OTA_HotelInvNotifRQ
Responses
| HTTP Code | Description | Schema |
|---|---|---|
200 |
The request has been accepted for processing |
|
400 |
The request content was malformed |
|
401 |
The supplier was unauthorized |
Consumes
-
application/xml
Produces
-
application/xml
Tags
-
RoomStatus
Security
| Type | Name |
|---|---|
apiKey |
Example HTTP request
Request path
/cm/room/status
Request body
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelInvNotifRQ xmlns="http://www.opentravel.org/OTA/2003/05" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opentravel.org/2017B/OTA_HotelInvNotifRQ.xsd">
<SellableProducts HotelCode="111">
<SellableProduct InvCode="123" InvNotifType="Overlay" InvStatusType="Active"/>
<SellableProduct InvCode="345" InvNotifType="Overlay" InvStatusType="Inactive"/>
<SellableProduct InvCode="456" InvNotifType="Overlay" InvStatusType="Deleted"/>
</SellableProducts>
</OTA_HotelInvNotifRQ>
Example HTTP response
Response 200
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelInvNotifRS CorrelationID="8b417d6a-f3df-4d65-870c-240378b8ad3e">
<Success/>
</OTA_HotelInvNotifRS>
Response 400
<OTA_HotelInvNotifRS CorrelationID="325d8000-48cf-11ea-9337-8950898f7d75">
<Errors>
<Error Code="321" ShortText="Required field missing" Status="NotProcessed"/>
</Errors>
</OTA_HotelInvNotifRS>
Response 401
<OTA_HotelInvNotifRS CorrelationID="325d8000-48cf-11ea-9337-8950898f7d75">
<Errors>
<Error Code="497" ShortText="Authorization error" Status="NotProcessed"/>
</Errors>
</OTA_HotelInvNotifRS>
