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
Parameter
Name | Data Type | Description | Example |
Request_Type * | VARCHAR(250) | Use Keyword “Separatesourcemapping” | |
HotelCode * | INT(11) | Unique Hotel code | XXXX |
AuthCode * | VARCHAR(300) | Unique Authentication code | XXXXXXXXXXXXXXXXX |
Request
{ "RES_Request": { "Request_Type": "Separatesourcemapping", "Authentication": { "HotelCode": "xxxx", "AuthCode": "xxxxxxxxxxxxxxxxxxx" } } }
Response
Name | Data Type | Description | Example |
RoomType->ID | Integer | Id of room type | 2700000000000001 |
RoomType->Name | String | Name of room type | Suite |
RateType->ID | Integer | Id of rate type | 2700000000000003 |
RateType->Name | String | Name of rate type | Non Refundable |
RatePlan->RatePlanID | Integer | Rate Plan Id of rate plan | 2700000000000007 |
RatePlan->Name | String | Name of rate plan | King RoomOnly |
RatePlan->RoomTypeID | Integer | Room type id | 2700000000000001 |
RatePlan->RoomType | String | Room Type | Suite |
RatePlan->RateTypeID | Integer | Rate Type Id | 2700000000000003 |
RatePlan->RateType | String | Rate Type | Non Refundable |
Saparatechannelsource->Channel_name | String | It is giving remarks | OTA Common Pool |
Saparatechannelsource->ChannelID | Integer | It 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 Code | Error Name |
202 | Unauthorized request. Hotel code is not active |
201 | Unauthorized request.Separatesourcemapping request is not valid for this hotel code |
100 | Missing required parameters. |
502 | Request Type is missing |
301 | Unauthorized Request. Please check hotel code and authentication code |
303 | Auth Code is inactive. |