Rates & Availability

Retrieve Room Rates

The API provides a room rates data for a specific date range, room type and rate type for a property. The API can return data in XML formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/xml

Parameter

NameData TypeDescriptionExample
Request_Type *VARCHAR(250)Use Keyword “Rate” 
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
FromDate *DATETo send a from date2020-07-05
ToDate *DATETo send a to date2020-07-07

Request 

<RES_Request>   
<Request_Type>Rate</Request_Type>
   <Authentication>
       <HotelCode>xxxx</HotelCode>
       <AuthCode>xxxxxxxxxx</AuthCode>
   </Authentication>
   <FromDate>2020-03-05</FromDate>
   <ToDate>2020-03-18</ToDate>
</RES_Request>

Response

NameData TypeDescriptionExample
RoomInfo.Source.RoomTypes.
RoomType.RoomTypeID
INT(11)Room Type Id1234500000000000001
RoomInfo.Source.RoomTypes.
RoomType.RateTypeID
INT(11)Rate Plan Id1234500000000000013
RoomInfo.Source.RoomTypes.
RoomType.FromDate
DATETIMEFrom date2020-05-01
RoomInfo.Source.RoomTypes.
RoomType.ToDate
DATETIMETo date2020-05-10
RoomInfo.Source.RoomTypes.
RoomType.RoomRate.Base
Decimal(11,4)Base Rate2500.0000
RoomInfo.Source.RoomTypes.
RoomType.RoomRate.ExtraAdult
Decimal(11,4)Extra Adult Rate500.0000
RoomInfo.Source.RoomTypes.
RoomType.RoomRate.ExtraChild
Decimal(11,4)Extra Child Rate200.0000
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageUnauthorized Request. etc

Success

<?xml version="1.0" encoding="UTF-8"?><RES_Response>
    <RoomInfo>
        <Source name="PMS">
            <RoomTypes>
                <RateType>
                    <RoomTypeID>1234500000000000001</RoomTypeID>
                    <RateTypeID>1234500000000000013</RateTypeID>
                    <FromDate>2020-03-14</FromDate>
                    <ToDate>2020-03-18</ToDate>
                    <RoomRate>
                        <Base>2500.0000</Base>
                        <ExtraAdult>500.0000</ExtraAdult>
                        <ExtraChild>200.0000</ExtraChild>
                    </RoomRate>
                </RateType>
            </RoomTypes>
        </Source>
        <Source name="Hotel Hilton - Web">
            <RoomTypes>
                <RateType>
                    <RoomTypeID>1234500000000000001</RoomTypeID>
                    <RateTypeID>1234500000000000001</RateTypeID>
                    <FromDate>2020-03-14</FromDate>
                    <ToDate>2020-03-15</ToDate>
                    <RoomRate>
                        <Base>750.0000</Base>
                        <ExtraAdult>350.0000</ExtraAdult>
                        <ExtraChild>50.0000</ExtraChild>
                    </RoomRate>
                </RateType>
            </RoomTypes>
        </Source>
    </RoomInfo>
</RES_Response> 

Error Codes

Error CodeError Name
114Missing from date in some request
115Missing to date in some request
117From Date is not valid date
118To Date is not valid date
119Please check From and To date. To Date should be greater than From Date
113Missing roomtype id in some request
400Invalid Request Format
302Authentication failed
303Auth Code is inactive.
301Unauthorized request. Request is not valid for this hotel code
202Unauthorized request. Hotel code is not active
111Invalid Request

Rates & Availability

Retrieve Room Inventory

The API provides a room inventory data for a specific date range and room type for a property. The API can return data in XML formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/xml

Parameter

NameData TypeDescriptionExample
Request_Type *VARCHAR(250)Use Keyword “Inventory” 
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
FromDate *DATETo send a from date2020-07-05
ToDate *DATETo send a to date2020-07-07

Request 

<RES_Request>   
<Request_Type>Inventory</Request_Type>
   <Authentication>
       <HotelCode>xxxx</HotelCode>
       <AuthCode>xxxxxxxxxx</AuthCode>
   </Authentication>
   <FromDate>2020-03-05</FromDate>
   <ToDate>2020-03-18</ToDate>
</RES_Request>

Response

NameData TypeDescriptionExample
RoomInfo.Source.RoomTypes.
RoomType.RoomTypeID
INT(11)Room Type Id1234500000000000001
RoomInfo.Source.RoomTypes.
RoomType.FromDate
DATETIMEFrom date2020-05-01
RoomInfo.Source.RoomTypes.
RoomType.ToDate
DATETIMETo date2020-05-10
RoomInfo.Source.RoomTypes.
RoomType.Availability
INT(11)No. Of room available4
Errors.ErrorCodeResponse Error Code104, 404 etc
Errors.ErrorMessageGenerate Response MessageUnauthorized Request. etc

Success

<?xml version="1.0" encoding="UTF-8"?><RES_Response>
    <RoomInfo>
        <Source name="Front">
            <RoomTypes>
                <RoomType>
                    <RoomTypeID>1234500000000000001</RoomTypeID>
                    <FromDate>2020-03-11</FromDate>
                    <ToDate>2020-03-16</ToDate>
                    <Availability>1</Availability>
                </RoomType>
                <RoomType>
                    <RoomTypeID>1234500000000000007</RoomTypeID>
                    <FromDate>2020-03-18</FromDate>
                    <ToDate>2020-03-18</ToDate>
                    <Availability>5</Availability>
                </RoomType>
            </RoomTypes>
        </Source>
    </RoomInfo>
</RES_Response>

Error Codes

Error CodeError Name
114Missing from date in some request
115Missing to date in some request
117From Date is not valid date
118To Date is not valid date
119Please check From and To date. To Date should be greater than From Date
113Missing roomtype id in some request
400Invalid Request Format
302Authentication failed
303Auth Code is inactive.
301Unauthorized request. Request is not valid for this hotel code
202Unauthorized request. Hotel code is not active
111Invalid Request

Rates & Availability

Update Close On Departure

This API helps you to apply close on departure restrictions for specific date ranges for a property. With this feature, you can restrict the availability of a room, by making a room unavailable to book if the guest checks out on a certain date.

The 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
Request_Type *Use Keyword “UpdateCOD”
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
RatePlanID *INT(20)Unique Rate Plan ID123450000000000001
FromDate *DATETIMEUpdate From date. [Format: yyyy-mm-dd]2020-06-25
ToDate *DATETIMEUpdate To date [Format: yyyy-mm-dd]2020-06-27
COD *INT(1)COD oprvalue [1 or 0]
1: Enable COD
0: Disable COD
1 OR 0

Request 

 {   
     "RES_Request": {
        "Request_Type": "UpdateCOD",
        "Authentication": {
           "HotelCode": "xxxx",
          "AuthCode": "xxxxxxxxxxxxxxxxxxxx"
         },
        "RatePlan": [
        {
             "RatePlanID": "123450000000000001",
             "FromDate": "2019-06-21",
             "ToDate": "2019-06-22",
             "COD": "0"
         },
        {
            "RatePlanID": "123450000000000001",
            "FromDate": "2019-06-25",
            "ToDate": "2019-06-27",
            "COD": "0"
        }
       ]
     }
} 

Response

NameData TypeDescriptionExample
Success.SuccessMsgGenerate Success Response Message COD Successfully Updated
Errors.ErrorCodeResponse Error Code122, 127 etc
Errors.ErrorMessageGenerate Response Message COD value is missing

Success

{    "Success": {
        "SuccessMsg": "COD Successfully Updated"
    },
    "Errors": {
        "ErrorCode": "0",
        "ErrorMessage": "Success"
    }
}

Error Codes

Error CodeError Name
100Missing required parameters.
500Error occurred during processing
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
105From Date is missing
106(From Date) – From Date is not a valid date
107To Date 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
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
122Rate Plan ID is missing
127COD value is missing
128Invalid COD value

Rates & Availability

Update Close On Arrival

This API helps you to apply close on arrival restrictions for specific date ranges for a property. With this feature, you can restrict the availability of a room, by making a room unavailable to book if the guest checks in on a certain date.

The 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
Request_Type *Use Keyword “UpdateCOA”
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
RatePlanID *INT(20)Unique Rate Plan ID123450000000000001
FromDate *DATETIMEUpdate From date. [Format: yyyy-mm-dd]2020-06-25
ToDate *DATETIMEUpdate To date [Format: yyyy-mm-dd]2020-06-27
COA *INT(1)COA oprvalue [1 or 0]
1: Enable COA
0: Disable COA
1 OR 0

Request 

 {   
     "RES_Request": {
        "Request_Type": "UpdateCOA",
        "Authentication": {
           "HotelCode": "xxxx",
          "AuthCode": "xxxxxxxxxxxxxxxxxxxx"
         },
        "RatePlan": [
        {
             "RatePlanID": "123450000000000001",
             "FromDate": "2019-06-21",
             "ToDate": "2019-06-22",
             "COA": "0"
         },
        {
            "RatePlanID": "123450000000000001",
            "FromDate": "2019-06-25",
            "ToDate": "2019-06-27",
            "COA": "0"
        }
       ]
     }
} 

Response

NameData TypeDescriptionExample
Success.SuccessMsgGenerate Success Response MessageCOA Successfully Updated
Errors.ErrorCodeResponse Error Code122, 127 etc
Errors.ErrorMessageGenerate Response MessageCOA value is missing

Success

{    "Success": {
        "SuccessMsg": "COA Successfully Updated"
    },
    "Errors": {
        "ErrorCode": "0",
        "ErrorMessage": "Success"
    }
}

Error Codes

Error CodeError Name
100Missing required parameters.
500Error occurred during processing
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
105From Date is missing
106(From Date) – From Date is not a valid date
107To Date 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
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
122Rate Plan ID is missing
127COA value is missing
128Invalid COA value

Rates & Availability

Update StopSell

This API helps you to open/close stop sell for specific date ranges for a property. With this feature, you can restrict the availability of a room, by making a room unavailable to book on a certain date.

The 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
Request_Type *Use Keyword “UpdateStopSell”
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
RatePlanID *INT(20)Unique Rate Plan ID123450000000000001
FromDate *DATETIMEUpdate From date. [Format: yyyy-mm-dd]2020-06-25
ToDate *DATETIMEUpdate To date [Format: yyyy-mm-dd]2020-06-27
StopSell *INT(1)Stopsell oprvalue [1 or 0]
1: Enable StopSell
0: Disable Stopsell
1 OR 0

Request 

 {   
     "RES_Request": {
        "Request_Type": "UpdateStopSell",
        "Authentication": {
           "HotelCode": "xxxx",
          "AuthCode": "xxxxxxxxxxxxxxx"
         },
        "RatePlan": [
        {
            "RatePlanID": "123450000000000001",
             "FromDate": "2019-06-21",
             "ToDate": "2019-06-22",
             "StopSell": "0"
         },
        {
            "RatePlanID": "123450000000000001",
            "FromDate": "2019-06-25",
            "ToDate": "2019-06-27",
            "StopSell": "0"
        }
       ]
     }
} 

Response

NameData TypeDescriptionExample
Success.SuccessMsgGenerate Success Response MessageStopSell Successfully Updated
Errors.ErrorCodeResponse Error Code122, 127 etc
Errors.ErrorMessageGenerate Response Message StopSell value is missing

Success

{    "Success": {
        "SuccessMsg": "StopSell Successfully Updated"
    },
    "Errors": {
        "ErrorCode": "0",
        "ErrorMessage": "Success"
    }
}

Error Codes

Error CodeError Name
100Missing required parameters.
500Error occurred during processing
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
105From Date is missing
106(From Date) – From Date is not a valid date
107To Date 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
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
122Rate Plan ID is missing
127StopSell value is missing
128Invalid StopSell value

Rates & Availability

Update Min Nights

This API helps you to update minimum nights for specific date ranges for a property. With this feature, you can restrict the availability of a room, by specifying a minimum length of stay if the reservation includes a certain date.

The 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
Request_Type *Use Keyword “UpdateMinNights”
HotelCode *INT(11)Unique hotel code generated in the systemXXXX
AuthCode *VARCHAR(300)Unique code to enable the interface.XXXXXXXXXXXXXXXXX
RatePlanID *INT(20)Unique Rate Plan ID112500000000000001
FromDate *DATETIMEUpdate From date. [Format: yyyy-mm-dd]2020-06-25
ToDate *DATETIMEUpdate To date [Format: yyyy-mm-dd]2020-07-27
MinNight *INT(11)MinNight value2,5,10 etc

Request 

{    "RES_Request": {
        "Request_Type": "UpdateMinNights",
        "Authentication": {
            "HotelCode": "xxxx",
            "AuthCode": "xxxxxxxxxxxx"
        },
        "RatePlan": [
            {
                "RatePlanID": "123400000000000001",
                "FromDate": "2019-06-25",
                "ToDate": "2019-06-27",
                "MinNight": "3"
            },
            {
                "RatePlanID": "123400000000000006",
                "FromDate": "2019-06-22",
                "ToDate": "2019-06-24",
                "MinNight": "3"
            }
        ]
    }
}

Response

NameData TypeDescriptionExample
Success.SuccessMsgGenerate Success Response MessageMin Nights Successfully Updated
Errors.ErrorCodeResponse Error Code122, 127 etc
Errors.ErrorMessageGenerate Response MessageMinNight value is missing

Success

{    "Success": {
        "SuccessMsg": " Min Nights Successfully Updated"
    },
    "Errors": {
        "ErrorCode": "0",
        "ErrorMessage": "Success"
    }
}

Error Codes

Error CodeError Name
100Missing required parameters.
500Error occurred during processing
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
105From Date is missing
106(From Date) – From Date is not a valid date
107To Date 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
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
122Rate Plan ID is missing
127MinNight value is missing
128Invalid MinNight value

Rates & Availability

Update Max Nights

This API helps you to update maximum nights for specific date ranges for a property. With this feature, you can restrict the availability of a room, by specifying a maximum length of stay if the reservation includes a certain date.

The 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
Request_Type *Use Keyword “UpdateMaxNights”
HotelCode *INT(11)Unique hotel code generated in the systemXXXX
AuthCode *VARCHAR(300)Unique code to enable the interface.XXXXXXXXXXXXXXXXX
RatePlanID *INT(20)Unique Rate Plan ID112500000000000001
FromDate *DATETIMEUpdate From date. [Format: yyyy-mm-dd]2020-06-25
ToDate *DATETIMEUpdate To date [Format: yyyy-mm-dd]2020-07-27
MaxNight *INT(11)MaxNight value2,5,10 etc

Request 

{    "RES_Request": {
        "Request_Type": "UpdateMaxNights",
        "Authentication": {
            "HotelCode": "xxxx",
            "AuthCode": "xxxxxxxxxxxx"
        },
        "RatePlan": [
            {
                "RatePlanID": "123400000000000001",
                "FromDate": "2019-06-25",
                "ToDate": "2019-06-27",
                "MaxNight": "3"
            },
            {
                "RatePlanID": "123400000000000006",
                "FromDate": "2019-06-22",
                "ToDate": "2019-06-24",
                "MaxNight": "3"
            }
        ]
    }
}

Response

NameData TypeDescriptionExample
Success.SuccessMsgGenerate Success Response MessageMax Nights Successfully Updated
Errors.ErrorCodeResponse Error Code122, 127 etc
Errors.ErrorMessageGenerate Response MessageMaxNight value is missing

Success

 {    "Success": {
        "SuccessMsg": " Max Nights Successfully Updated"
    },
    "Errors": {
        "ErrorCode": "0",
        "ErrorMessage": "Success"
    }
}

Error Codes

Error CodeError Name
100Missing required parameters.
500Error occurred during processing
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
105From Date is missing
106(From Date) – From Date is not a valid date
107To Date 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
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
122Rate Plan ID is missing
127MaxNight value is missing
128Invalid MaxNight value

Rates & Availability

Retrieve Room Rates with Source details

This API provides room types, rate types, rate plans and source information for a property. The 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
Request_Type *VARCHAR(250)Use Keyword “Separatesourcemapping”
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX

Request 

{    
"RES_Request": {
           "Request_Type": "Separatesourcemapping",
           "Authentication": {
               "HotelCode": "xxxx",
               "AuthCode": "xxxxxxxxxxxxxxxxxxx"
           }
    }
}

Response

NameData TypeDescription Example
RoomType->IDIntegerId of room type2700000000000001
RoomType->NameStringName of room typeSuite
RateType->IDIntegerId of rate type2700000000000003
RateType->NameStringName of rate typeNon Refundable
RatePlan->RatePlanIDIntegerRate Plan Id of rate plan2700000000000007
RatePlan->NameStringName of rate planKing RoomOnly
RatePlan->RoomTypeIDIntegerRoom type id2700000000000001
RatePlan->RoomTypeStringRoom TypeSuite
RatePlan->RateTypeIDIntegerRate Type Id2700000000000003
RatePlan->RateTypeStringRate TypeNon Refundable
Saparatechannelsource->Channel_nameStringIt is giving remarksOTA Common Pool
Saparatechannelsource->ChannelIDIntegerIt is giving reservation no.2700000000000096

Success

 {
     "RoomInfo": {
         "RoomTypes": {
             "RoomType": [
                 {
                     "ID": "2700000000000001",
                     "Name": "Suite"
                 },
             ]
         },
         "RateTypes": {
             "RateType": [
                 {
                     "ID": "2700000000000003",
                     "Name": "Non Refundable"
                 },
             ]
         },
         "RatePlans": {
             "RatePlan": [
                 {
                     "RatePlanID": "2700000000000007",
                     "Name": "King RoomOnly",
                     "RoomTypeID": "2700000000000001",
                     "RoomType": "Suite",
                     "RateTypeID": "2700000000000003",
                     "RateType": "Non Refundable"
                 },
             ]
         },
         "Saparatechannelsources": {
             "Saparatechannelsource": {
                 "Channel_name": "OTA Common Pool",
                 "ChannelID": "2700000000000096"
             }
         }
     },
     "Errors": {
         "ErrorCode": "0",
         "ErrorMessage": "Success"
     }
 }

Error

{    "Errors": {
        "ErrorCode": "301",
        "ErrorMessage": "Unauthorized Request. Please check hotel code and authentication code"
    }
}

Error Codes

Error CodeError Name
202Unauthorized request. Hotel code is not active
201Unauthorized request.Separatesourcemapping request is not valid for this hotel code
100Missing required parameters.
502Request Type is missing
301Unauthorized Request. Please check hotel code and authentication code
303Auth Code is inactive.

Rates & Availability

Update Non Linear Rate

This API provides a provision to set up occupancy based rates for a specified date range in any property. You must specify property’s rates based on combination of room type ID and rate type ID. In the non-linear pricing strategy, you’ll be able to levy your room charges as per the number of adults and children staying in a room. Naturally, the charges of adults and children will be separately configured.

Example : The base price of your room is $3000 for two adults and a child to stay in the room. If the guests bring in one extra child, you can charge an additional $300. If the guest bring in another child, you can charge in another $400. It goes the same for extra adults as well.

The non-linear price rate is flexible and can be edited to suit the requirements of your guests. The 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
Request_Type *Use Keyword “UpdateRoomRatesNL”
HotelCode *INT(11)Unique hotel code generated in the system.XXXX
AuthCode *VARCHAR(300)Unique code to enable the interfaceXXXXXXXXXXXXXXXXX
Sources-> ContactIdVARCHAR(100)Source Unique ID112500000000000001
RateType -> RoomTypeID *INT(20)Unique RoomType ID112500000000000001
RateType -> RateTypeID *INT(20)Unique RateType ID112500000000000001
RateType ->
FromDate *
DATETIMEUpdate From date.2020-06-25
RateType ->
ToDate *
DATETIMEUpdate To date2020-07-27
RateType ->
RoomRate ->
Base *
DECIMAL(19,4)Base rate amount4000, 1000 etc
RateType ->
RoomRate ->
ExtraAdult
DECIMAL(19,4)Extra adult rate amount [optional]1000,800 etc
RateType ->
RoomRate ->
ExtraChild
DECIMAL(19,4)Extra child rate amount [optional]500, 200 etc
RateType ->
RoomRate ->
Adult1 – Adult7
DECIMAL(19,4)Rate amount for upto 7 Adults [optional]500, 200 etc
RateType ->
RoomRate ->
Child1 – Child7
DECIMAL(19,4)Rate amount for upto 7 Childs [optional]500, 200 etc

Request 

{    "RES_Request": {
        "Request_Type": "UpdateRoomRatesNL",
        "Authentication": {
            "HotelCode": "xxxx",
            "AuthCode": "xxxxxxxxxxxxxxxx"
        },
        "Sources": {
            "ContactId": [
                "112400000000000873",
                "112400000000000087"
            ]
        },
        "RateType": [
            {
                "RoomTypeID": "112400000000000003",
                "RateTypeID": "112400000000000001",
                "FromDate": "2019-08-07",
                "ToDate": "2019-08-07",
                "RoomRate": {
                    "Base": "300",
                    "ExtraAdult": "100",
                    "ExtraChild": "70",
                    "Adult1": "100",
                    "Adult2": "200",
                    "Adult3": "300",
                    "Adult4": "400",
                    "Adult5": "500",
                    "Adult6": "600",
                    "Adult7": "700",
                    "Child1": "100",
                    "Child2": "200",
                    "Child3": "300",
                    "Child4": "400",
                    "Child5": "500",
                    "Child6": "600",
                    "Child7": "700"
                }
            },
            {
                "RoomTypeID": "112400000000000002",
                "RateTypeID": "112400000000000001",
                "FromDate": "2019-08-07",
                "ToDate": "2019-08-07",
                "RoomRate": {
                    "Base": "300",
                    "ExtraAdult": "100",
                    "ExtraChild": "70",
                    "Adult1": "100",
                    "Adult2": "200",
                    "Adult3": "300",
                    "Adult4": "400",
                    "Adult5": "500",
                    "Adult6": "600",
                    "Adult7": "700",
                    "Child1": "100",
                    "Child2": "200",
                    "Child3": "300",
                    "Child4": "400",
                    "Child5": "500",
                    "Child6": "600",
                    "Child7": "700"
                }
            }
        ]
    }
}

Response

NameData TypeDescriptionExample
Success.SuccessMsgGenerate Success ResponseRoom Rates Successfully Updated
Errors.ErrorCodeResponse Error Code104, 121 etc
Errors.ErrorMessageGenerate Response MessageNo Rates to update

Success

{    "Success": {
        "SuccessMsg": " Room Rates Successfully Updated"
    },
    "Errors": {
        "ErrorCode": "0",
        "ErrorMessage": "Success"
    }
}

Error

{    "Errors": {
        "ErrorCode": "301",
        "ErrorMessage": "Unauthorized Request. Please check hotel code and authentication code"
    }
}

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 type is missing
104Rate type is missing
105From Date is missing
106(From Date) – From Date is not a valid date
107To Date 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
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
113Invalid base rate
114Invalid extra adult rate
115Invalid extra child rate
121No Rates to update
135Invalid rate for any between adult1 to adult7

Rates & Availability

Update Linear Rate

This API provides a provision to set up linear rates for a specified date range in any property. You must specify property’s rates based on a combination of room type ID and rate type ID. In the linear pricing strategy, you can apply a linear rate to your base price.

Example : The base price of your room is $3000 for two adults and a child to stay in the room. If any of your guests want to use the same room with an extra adult and child, then the rate will increase by a fixed amount.

The 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
Request_Type *Use Keyword “UpdateRoomRates”
HotelCode *INT(11)Unique hotel code generated in the system.XXXX
AuthCode *VARCHAR(300)Unique code to enable the interfaceXXXXXXXXXXXXXXXXX
Sources-> ContactIdVARCHAR(100)Source Unique ID112500000000000001
RateType -> RoomTypeID *INT(20)Unique RoomType ID112500000000000001
RateType -> RateTypeID *INT(20)Unique RateType ID112500000000000001
RateType -> 
FromDate *
DATETIMEUpdate From date.2020-06-25
RateType ->
ToDate *
DATETIMEUpdate To date2020-07-27
RateType ->
RoomRate -> 
Base *
DECIMAL(19,4)Base rate amount4000, 1000 etc
RateType ->
RoomRate ->
ExtraAdult
DECIMAL(19,4)Extra adult rate amount [optional]1000,800 etc
RateType ->
RoomRate ->
ExtraChild
DECIMAL(19,4)Extra child rate amount [optional]500, 200 etc

Request 

 {    
"RES_Request": {
        "Request_Type": "UpdateRoomRates",
        "Authentication": {
            "HotelCode": "xxxx",
            "AuthCode": "xxxxxxxxxxxxxxxxx"
        },
       "Sources": {
            "ContactId": [
                "112400000000000873",
                "112400000000000087"
            ]
        },
        "RateType": [
            {
                "RoomTypeID": "112400000000000003",
                "RateTypeID": "112400000000000002",
                "FromDate": "2019-06-20",
                "ToDate": "2019-06-25",
                "RoomRate": {
                    "Base": "159"
                }
            },
            {
                "RoomTypeID": "112400000000000003",
                "RateTypeID": "112400000000000002",
                "FromDate": "2019-06-02",
                "ToDate": "2019-06-06",
                "RoomRate": {
                    "Base": "159",
                    "ExtraAdult": "80",
                    "ExtraChild": "50"
                }
            }
        ]
    }
}

Response

NameData TypeDescriptionExample
Success.SuccessMsgGenerate Success ResponseRoom Rates Successfully Updated
Errors.ErrorCodeResponse Error Code104, 113 etc
Errors.ErrorMessageGenerate Response MessageInvalid base rate

Success

 {    "Success": {
        "SuccessMsg": "Room Rates Successfully Updated"
    },
    "Errors": {
        "ErrorCode": "0",
        "ErrorMessage": "Success"
    }
}

Error

 {    "Errors": {
        "ErrorCode": "301",
        "ErrorMessage": "Unauthorized Request. Please check hotel code and authentication code"
    }
}

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 type is missing
104Rate type is missing
105From Date is missing
106(From Date) – From Date is not a valid date
107To Date 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
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
113Invalid base rate
114Invalid extra adult rate
115Invalid extra child rate
121No Rates to update

Rates & Availability

Update Room Inventory

This API provides a provision to update Room(s) Inventory for the specified date range in any property. You must specify a property’s available inventory based on a room type ID. You can’t specify availability at rate plan level, even if the room type has multiple rates plans.

Example : If room type A  is available 10 times, you can’t specify that it can be sold 3 times for rate plan X, and 7 times for rate plan Y. You can only specify the total availability for room type A as 10.

The 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
Request_Type *Use Keyword “UpdateAvailability”
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
RoomTypeID *INT(20)Unique RoomType ID112500000000000001
FromDate *DATETIMEUpdate From date.2020-07-25
ToDate * DATETIMEUpdate To date [Format: yyyy-mm-dd]2020-07-27
Availability *IntegerNo. of Inv. Count5, 10 , 50 etc

Request 

 {    "RES_Request": {
        "Request_Type": "UpdateAvailability",
        "Authentication": {
            "HotelCode": "xxxx",
            "AuthCode": "xxxxxxxxxxxx"
        },                 
        "RoomType": [
            {
                "RoomTypeID": "112400000000000002",
                "FromDate": "2019-06-24",
                "ToDate": "2019-06-30",
                "Availability": "9"
            },
            {
                "RoomTypeID": "112400000000000002",
                "FromDate": "2019-06-14",
                "ToDate": "2019-06-20",
                "Availability": "9"
            }
        ]
    }
}

Response

NameData TypeDescriptionExample
Success.SuccessMsgGenerate Success ResponseRoom Inventory Successfully Updated
Errors.ErrorCodeResponse Error Code301, 404 etc
Errors.ErrorMessageGenerate Response MessageUpdate operation is not allowed

Success

 {    "Success": {
        "SuccessMsg": "Room Inventory Successfully Updated"
    },
    "Errors": {
        "ErrorCode": "0",
        "ErrorMessage": "Success"
    }
}

Error

 {    "Errors": {
        "ErrorCode": "301",
        "ErrorMessage": "Unauthorized Request. Please check hotel code and authentication code"
    }
}

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 type is missing
105From Date is missing
106(From Date) – From 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
110Inventory value is missing
111Invalid inventory value
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
134All Source(s) are using inventory of other source, thefore no update will be allowed.

Click here to Register