Managing Rate Status

4.7. Managing Rate Status

POST /cm/rateplan/status

Description

This section outlines the ability to activate / deactivate / delete property’s rateplans

Body parameter

List of RatePlans in OTA2017B format which specifies the property and rateplan’s status

Name : body
Flags : required
Type : OTA_HotelRatePlanNotifRQ

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

  • RatePlanStatus

Security

Type Name

apiKey

Example HTTP request

Request path
/cm/rateplan/status
Request body
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelRatePlanNotifRQ 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_HotelRatePlanNotifRQ.xsd">
  <RatePlans HotelCode="111">
    <RatePlan RatePlanCode="123" RatePlanNotifType="Overlay" RatePlanStatusType="Active"/>
    <RatePlan RatePlanCode="456" RatePlanNotifType="Overlay" RatePlanStatusType="Inactive"/>
    <RatePlan RatePlanCode="789" RatePlanNotifType="Overlay" RatePlanStatusType="Deleted"/>
  </RatePlans>
</OTA_HotelRatePlanNotifRQ>

Example HTTP response

Response 200
<?xml version="1.0" encoding="UTF-8"?>
<OTA_HotelRatePlanNotifRS CorrelationID="8b417d6a-f3df-4d65-870c-240378b8ad3e">
  <Success/>
</OTA_HotelRatePlanNotifRS>
Response 400
<OTA_HotelRatePlanNotifRS CorrelationID="325d8000-48cf-11ea-9337-8950898f7d75">
  <Errors>
    <Error Code="321" ShortText="Required field missing" Status="NotProcessed"/>
  </Errors>
</OTA_HotelRatePlanNotifRS>
Response 401
<OTA_HotelRatePlanNotifRS CorrelationID="325d8000-48cf-11ea-9337-8950898f7d75">
  <Errors>
    <Error Code="497" ShortText="Authorization error" Status="NotProcessed"/>
  </Errors>
</OTA_HotelRatePlanNotifRS>