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.

Click here to Register