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

Click here to Register