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

Click here to Register