Configuration

Retrieve Available Room List

This API will fetch the available room data between check-in and check-out date. Also, you can add Room Unique Id or Roomtype Unique Id, If you will need particular room data. 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
HotelCode*INT(11)Unique Hotel codexxxx
AuthCode*VARCHAR(300)Unique Authentication codexxxxxxxxxx
Request_Type*VARCHAR(100)Request TypeRoomAvailability
RoomData->from_date*DATECheck-In Date2021-12-05
RoomData->to_date*DATECheck-Out Date2021-12-06
RoomData->RoomIDINT(11)Room Unique ID (Optional)123400000000000002
RoomData->RoomtypeIDINT(11)Room Type Unique ID (Optional)123400000000000002

Request 

{
       "RES_Request": {
             "Request_Type": "RoomAvailability",
             "Authentication": {
                     "HotelCode": "xxxx",
                     "AuthCode": "xxxxxxxxxxxxxxxxxxxxxxxxxx"
             },
             "RoomData": {
                     "RoomtypeID": "123400000000000002", (Optional)
                     "RoomID": "123400000000000002",  (Optional)
                     "from_date": "2021-11-30",
                     "to_date": "2021-12-10"
             }
       }
}

Response

NameData TypeDescriptionExample
RoomList-> RoomtypeIDIntegerRoomtype Unique ID123400000000000001
RoomList-> RoomtypeNameVarcharRoomtype NameDeluxe Room
RoomList-> RoomData-> RoomIDIntegerRoom Unique ID123400000000000001
RoomList-> RoomData-> RoomNameVarcharRoom Name/No105

Success

{
    "Success": {
      "RoomList": 
      [
         {
               "RoomtypeID": "123400000000000002",
               "RoomtypeName": "Deluxe Room",
               "RoomData": 
                [
                    {
                         "RoomID": "123400000000000011",
                         "RoomName": "101"
                    },
                    {
                          "RoomID": "123400000000000012",
                          "RoomName": "102"
                    },
               ]
        },
        {
              "RoomtypeID": "1234700000000000003",
              "RoomtypeName": "Sea View Room",
              "RoomData":
              [
                   {
                         "RoomID": "123400000000000015",
                         "RoomName": "105"
                   },
              ]
         }
    ]
    },
    "Errors": {
          "ErrorCode": "0",
          "ErrorMessage": "Success"
     }
}

Error

{
     "Error": 
     [
        {
           "ErrorCode": "121",
           "ErrorMessage": "Invalid Value. Please check with RoomType Data"
        }
     ]
}

Error Codes

Error CodeError Name
500Error occurred during processing
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
105From Date is missing
106Date – From Date is not a valid date
107To Date is missing
108Date – To Date is not a valid date
109From Date: <Date> To Date : <Date> –
Please check From and To date. To Date should be greater than fromdate
111Missing Parameter OR Invalid Parameter : RoomData
112Invalid Parameter
113Invalid Value
121Invalid Value. Please check with RoomType Data
122Invalid Value. Please check with Room Data
301No Data Found
201Unauthorized request.(Request Type) request is not valid for this hotel code
202Unauthorized request. Hotel code is not active

Configuration

Retrieve Identity Type

This API will give you all active Identity Types (Passport, Pancard, etc) available in the hotel. 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
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
Request_Type *VARCHAR(100)Request TypeRetrieveIdentityType

Request 

 {
       "RES_Request": {
              "Request_Type": "RetrieveIdentityType",
               "Authentication": {
                      "HotelCode": "xxxx",
                      "AuthCode": "xxxxxxxxxxxx"
                }
        }
}
 

Response

NameData TypeDescription Example
IdentityType->IdentityTypeIDIntegerIdentity Type Unique id1234500000000000001
IdentityType->NameStringIdentity Type NamePassport,Driving License

Success

{      "Success": {   
        "IdentityType": [
        {
           "IdentityTypeID": "1234500000000000001",           
           "Name": "Passport" 
        },
        {
           "IdentityTypeID": "1234500000000000002",          
           "Name": "Driving License"  
        }
      ]
   },
  "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
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
203No Data Found

Configuration

Retrieve Pay Methods

This API will give you all the pay methods available in the hotel. You need to send only active pay methods of the hotel. 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
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
Request_Type *VARCHAR(100)Request TypeRetrievePayMethods

Request 

 {
       "RES_Request": {
              "Request_Type": "RetrievePayMethods",
               "Authentication": {
                      "HotelCode": "xxxx",
                      "AuthCode": "xxxxxxxxxxxx"
                }
        }
}
 

Response

NameData TypeDescription Example
PayMethods->PayMethodIDIntegerPay Method Unique id1234500000000000001
PayMethods->PaymentIDStringPayment Unique id1234500000000000001
PayMethods->NameStringPay Method NameCash
PayMethods->ShortCodeStringPay Method Short CodeCash
PayMethods->TypeStringPay Method TypeCash,Bank
PayMethods->CardProcessingIntegerCard Processing0
PayMethods->SurchargeApplicableStringSurcharge Applicable1
PayMethods->SurchargeTypeStringSurcharge TypeFlatPercent,Amount
PayMethods->SurchargeValueDecimalSurcharge Value5
PayMethods->SurchargeIDIntegerSurcharge Unique ID1234500000000000001
PayMethods->SurchargeNameStringSurcharge NameSurcharge

Success

{      "Success": {   
        "PayMethods": [
        {
          "PayMethodID": "1234500000000000001",          
          "PaymentID": "1234500000000000001",    
          "Name": "Cash",
          "ShortCode": "Cash",
          "Type": "Cash",
          "CardProcessing": "0",
          "SurchargeApplicable": "1",
          "SurchargeType": "FlatPercent",
          "SurchargeValue": "5",
          "SurchargeID": "1234500000000000001",
          "SurchargeName": "Surcharge"
        },
        {
          "PayMethodID": "1234500000000000002",          
          "PaymentID": "1234500000000000002",    
          "Name": "Cheque",
          "ShortCode": "Chq",
          "Type": "Bank",
          "CardProcessing": "0",
          "SurchargeApplicable": "0",
          "SurchargeType": "",
          "SurchargeValue": "",
          "SurchargeID": "",
          "SurchargeName": ""
        }
      ]
   },
  "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
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
203Payment Methods are not available in this hotel

Configuration

Retrieve Currency

This API will give you all the currencies available in the hotel. You need to send only active currency of the hotel. 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
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
Request_Type *VARCHAR(100)Request TypeRetrieveCurrency

Request 

 {
       "RES_Request": {
              "Request_Type": "RetrieveCurrency",
               "Authentication": {
                      "HotelCode": "xxxx",
                      "AuthCode": "xxxxxxxxxxxx"
                }
        }
}
 

Response

NameData TypeDescription Example
CurrencyList->CurrencyIDIntegerCurrency Unique id1234500000000000001
CurrencyList->CountryStringCountry name India
CurrencyList->CurrencyStringCurrency NameRupees
CurrencyList->CurrencyCodeStringCurrency CodeINR
CurrencyList->SignStringCurrency sign
CurrencyList->DigitsAfterDecimalIntegerCurrency Digits After Decimal2
CurrencyList->IsBaseCurrencyStringIs Base Currency0,1
CurrencyList->ExchangeRateDecimalCurrency Exchange Rate15.0000

Success

{      "Success": {   
        "CurrencyList": [
        {
          "CurrencyID": "1234500000000000001",
          "Country": "Argentina",
          "Currency": "Dollar ARS",
          "CurrencyCode": "ARS",
          "Sign": "$",
          "DigitsAfterDecimal": "2",
          "IsBaseCurrency": "0",
          "ExchangeRate": "15.0000"
        },
        {
         "CurrencyID": "1234500000000000002",
          "Country": "India",
          "Currency": "Rupees",
          "CurrencyCode": "INR",
          "Sign": "₹",
          "DigitsAfterDecimal": "2",
          "IsBaseCurrency": "1",
          "ExchangeRate": "1.0000"

        }
      ]
   },
  "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
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
203No Data Found

Configuration

Retrieve Payment Gateways

This API provides all payment gateways which are available for your Booking Engine. The API can return data in JSON formats. The web service responds to HTTP GET requests. You need to take eZee Reservation to use this API.

End Point URL

[BaseUrl]booking/reservation_api/listing.php?APIKey=[API_KEY]&request_type=[Request_Type]&HotelCode=[Hotel_Code]

Header

Parameter

NameData TypeDescriptionExample
[BaseUrl] *Live server URLhttps://live.ipms247.com/
[Request_Type] *Use Keyword “ConfiguredPGList”
[Hotel_Code] *INT(11)Unique Hotel codeXXXX
[API_KEY] *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXX

Request 

https://live.ipms247.com/booking/reservation_api/listing.php?APIKey=XX&request_type=ConfiguredPGList&HotelCode=XX

Response

NameData TypeDescriptionExample
paymenttypeunkid    Integer(20)Payment uniqueidxxxxxxxxxxxx
hotel_code    Integer(11)Unique hotel code1234
shortcode    StringShort codeAirPay
paymenttype    StringSource of businessAirPay

Success

[
{
"paymenttypeunkid": "4000000000000048",
"hotel_code": "1234",
"shortcode": "AirPay",
"paymenttype": "AirPay”
}
]

Error Codes

Error CodeError Name
HotelCodeEmptyHotel code is empty.
NORESACCThis request is valid for Reservation Account only. You may not have opted for Reservation Account Or Hotel Code and Authentication are invalid.
UNAUTHREQUnauthorized request. This request is not valid for this hotel code.
2Cannot Parse Request
DBConnectErrordatabase not connected.
-1No Data found.
APIACCESSDENIEDYour property doesn’t have access to API integration or Key is incorrect. Please contact support for this.
BadRequestBad request type.
UnknownErrorUnknown Error
InvalidHotelCodeInvalid Hotel code.Please check your property code.

Configuration

Verify Travel Agent

In this API, we expect some details from the client to be sent in request and based on that request we verify Travel Agent user and return verified Travel Agent information for properties in which it is created. The API can return data in JSON formats. The web service responds to HTTP GET requests.

You need to take eZee Reservation to use this API.

URI Request

Request parameters are supplied by appending a question mark (?) to the base URI, followed by a sequence of parameter names and values separated by an ampersand (&).

End Point URL

[BaseUrl]/booking/reservation_api/listing.php?APIKey=[APIKey]&request_type=[request_type]&username=[username]&password=[password]&groupcode=[groupcode]

Header

Parameter

NameData TypeDescriptionExample
[BaseUrl] *Live server URLhttps://live.ipms247.com/
[Request_Type] *Use Keyword “VerifyUser”
[Hotel_Code] *INT(11)Unique Hotel codeXXXX
[API_KEY] *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXX
[username] *VARCHAR(300)Pass travel agent user nameXXXXXXXXX
[password] *VARCHAR(300)Pass base_64 encoded encrypted password.
Here’s the online tool for base_64 encoded encryption 
base64_encode($x)
[groupcode] *VARCHAR(300)Unique group code for each registered chain of properties. XXXXX

Request 

https://live.ipms247.com/booking/reservation_api/listing.php?APIKey=XX&request_type=VerifyUser&username=XX&password=XX&groupcode=XX

Response

NameData TypeDescriptionExample
contactunkidInteger(20)Unique contact idxxxxxxxxxxxx
salutationStringSalutation of user301, 404 etc
business_nameStringName of businessReservation already processed
nameStringUser nameJhon
addressStringAddress of user3817 Sugar Camp Road
cityStringCity nameNew York
stateStringState nameNew York
zipcodeIntegerzipcode123456
countryStringCountry nameUSA
phoneIntegerPhone number123456789
mobileIntegerMobile number1234567890
emailStringEmail idPamalaWHam@rhyta.com
isusercreatedStringIs user created1 or 0

Success

"contact_detail":{
"26":{"contact_detail":{"contactunkid":"2600000000001612","salutation":"Mr.","business_name":"OLX","name":"Maximum","address":null,"city":null,"state":null,"zipcode":null,"country":"India","phone":null,"mobile":null,"email":"Maximum@gmail.com","isusercreated":"1"}},
"1023":{"contact_detail":{"contactunkid":"102300000000000844","salutation":"Mr.","business_name":"OLX","name":"Maximum","address":null,"city":null,"state":null,"zipcode":null,"country":"India","phone":null,"mobile":null,"email":"Maximum@gmail.com","isusercreated":"1"}},
"3419":{"contact_detail":{"contactunkid":"341900000000000098","salutation":"Mr.","business_name":"OLX","name":"Maximum","address":null,"city":null,"state":null,"zipcode":null,"country":"India","phone":null,"mobile":null,"email":"Maximum@gmail.com","isusercreated":"1"}}

Error Codes

Error CodeError Name
HotelCodeEmptyHotel code is empty.
NORESACC1This request is valid for Reservation Account only. You may not have opted for Reservation Account Or Groups Code and Authentication are invalid.
UNAUTHREQUnauthorized request. This request is not valid for this hotel code.
2Cannot Parse Request
DBConnectErrorDatabase not connected.
BadRequestBad request type.
-1No Data found.
APIACCESSDENIEDYour property doesn’t have access to API integration or Key is incorrect. Please contact support for this.
INVUSEPASSInvalid Username and Password.
UnknownErrorUnknown Error
InvalidHotelCodeInvalid Hotel code.Please check your property code.

Configuration

Retrieve Extras Rate Based on Parameters

This API will give you a total extra service rate on the basis of configured Extra Charges, check in date and check out date in your property.  The API can return data in JSON formats. The web service responds to HTTP GET requests.

This API will fulfill both needs to give you details for single extra charges or multiple extra charges at a time. You need to take eZee Reservation to use this API. 

URI Request

Request parameters are supplied by appending a question mark (?) to the base URI, followed by a sequence of parameter names and values separated by an ampersand (&).

End Point URL

[BaseUrl]booking/reservation_api/listing.php?request_type=[Request_Type]&HotelCode=[Hotel_Code]&APIKey=[API_KEY]&check_in_date=[CHECK_IN_DATE]&check_out_date=[CHECK_OUT_DATE]&ExtraChargeId=[EXTRACHARGEID]&Total_ExtraItem=[TOTAL_EXT RAITEM]

Header

Parameter

NameData TypeDescriptionExample
[BaseUrl] *Live server URLhttps://live.ipms247.com/
[Request_Type] *Use Keyword “CalculateExtraCharge”
[Hotel_Code] *INT(11)Unique Hotel codeXXXX
[API_KEY] *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXX
[CHECK_IN_DATE] *DATEPass Check in date in YYYY-MM-DD format2020-07-05
[CHECK_OUT_DATE] *DATEPass Check out date in YYYY-MM-DD format2020-07-07
[EXTRACHARGEID] *VARCHAR(300)Pass [single|multiple] extra charge id’s for your propertySingle : XXX
Multiple : XXX, YYY
[TOTAL_EXT RAITEM] *VARCHAR(300)Pass total number of items for  [single|multiple] extra chargesSingle : 2
Multiple : 2, 3

Sample 1:
Extra charge Rule : Per Pax,
Adults : 2, Child : 1 Pass [TOTAL_EXTRAITEM] = 3

Sample 2:
Extra charge Rule : Per Quantity, Quantity: 2 Pass [TOTAL_EXTRAITEM] = 2

Request 

https://live.ipms247.com/booking/reservation_api/listing.php?request_type=CalculateExtraCharge&HotelCode=XXX&APIKey=XXX&check_in_date=XXX&check_out_date=XXX&ExtraChargeId=XXX&Total_ExtraItem=X

Response

NameData TypeDescriptionExample
IndividualChargeList of Individual Chargexxx
TotalChargeTotal of charge 160

Success

{
"IndividualCharge": { "XXX": 150,
"YYY": 10
},
"TotalCharge": 160
}

Error Codes

Error CodeError Name
HotelCodeEmptyHotel code is empty.
NORESACCThis request is valid for Reservation Account only. You may not have opted for Reservation Account Or Hotel Code and Authentication are invalid.
UNAUTHREQUnauthorized request. This request is not valid for this hotel code.
2Cannot Parse Request
5Recoverable Error. Equivalent to http 503.
CheckDateCheck out date should be greater than Check in date
DBConnectErrorDatabase not connected.
getExtraChargeListErrorExtra Charge List error
-1No Data found.
APIACCESSDENIEDYour property doesn’t have access to API integration or Key is incorrect. Please contact support for this.
ParametersMissingMissing parameters.
UnknownErrorUnknown Error
4Timeout requested. Stops requests for the specified time.
InvalidHotelCodeInvalid Hotel code.Please check your property code.
BadRequestBad request type.

Configuration

Retrieve Salutations and Country

This API provides information of salutations and country list available for your property which can be displayed in the external applications. The API can return data in JSON formats. The web service responds to HTTP GET requests.

URI Request

Request parameters are supplied by appending a question mark (?) to the base URI, followed by a sequence of parameter names and values separated by an ampersand (&).

End Point URL

[BaseUrl]booking/reservation_api/listing.php?request_type=[Request_Type]&HotelCode=[Hotel_Code]&APIKey=[API_KEY]&language=[LANGUAGE]

Header

Parameter

NameData TypeDescriptionExample
[BaseUrl] *Live server URLhttps://live.ipms247.com/
[Request_Type] *Use Keyword “ConfiguredDetails”
[Hotel_Code] *INT(11)Unique Hotel codeXXXX
[API_KEY] *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
[LANGUAGE]VARCHAR(20)[Optional] Default is en.
Pass language code. Language codes are available here.
Optional Default is en

Request 

https://live.ipms247.com/booking/reservation_api/listing.php?request_type=ConfiguredDetails&HotelCode=XXXX&APIKey=XXXXXX&language=en

Response

NameData TypeDescriptionExample
SalutionStringGet salutation listDr,Jr
Country ListStringGet country listAfghanistan,Albania

Success

{
"Salutation": { "DR": "Dr.",
"JN": "Jn.",
"MAM": "Mam.",
"MR": "Mr.",
"MRS": "Mrs.",
"MS": "Ms.",
"SIR": "Sir",
"SR": "Sr."
},
"CountryList": {
"1": "Afghanistan",
"2": "Albania",

        "3": "Algeria",
.....
}
}

Error Codes

Error CodeError Name
HotelCodeEmptyHotel code is empty.
NORESACCThis request is valid for Reservation Account only. You may not have opted for Reservation Account Or Hotel Code and Authentication are invalid.
UNAUTHREQUnauthorized request. This request is not valid for this hotel code.
2Cannot Parse Request
5Recoverable Error. Equivalent to http 503.
DBConnectErrorDatabase not connected.
BadRequestBad request type.
-1No Data found.
APIACCESSDENIEDYour property doesn’t have access to API integration or Key is incorrect. Please contact support for this.
ParametersMissingMissing parameters.
UnknownErrorUnknown Error
4Timeout requested. Stops requests for the specified time.
InvalidHotelCodeInvalid Hotel code.Please check your property code.

Configuration

Retrieve Room Types

This API provides limited information of roomtypes for a property which can be used for the mapping or display purpose in the external applications. The API can return data in JSON formats. The web service responds to HTTP GET requests.

URI Request

Request parameters are supplied by appending a question mark (?) to the base URI, followed by a sequence of parameter names and values separated by an ampersand (&).

End Point URL

[BaseUrl]booking/reservation_api/listing.php?request_type=[Request_Type]&HotelCode=[Hotel_Code]&APIKey=[API_KEY]&publishtoweb=1;

Header

Parameter

NameData TypeDescriptionExample
[BaseUrl] *Live server URLhttps://live.ipms247.com/
[Request_Type] *Use Keyword “RoomTypeList”
[Hotel_Code] *INT(11)Unique Hotel codeXXXX
[API_KEY] *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
[LANGUAGE]VARCHAR(20)[Optional] Default is en.
Pass language code. Language codes are available here.
en
publishtowebTINYINT(1)1 – will retrieve all Room Types0 – will retrieve room types which are published to WEBDefault value is 00 OR 1

Request 

https://live.ipms247.com/booking/reservation_api/listing.php?request_type=RoomTypeList&HotelCode=XXX&APIKey=XXX&language=en&publishtoweb=1

Response

NameData TypeDescriptionExample
roomtypeunkidINT(20)Unique Room Type ID123400000000000001
roomtypeVARCHAR(255)Room Type NameDeluxe, Luxury
base_adult_occupancyINT(11)Base adult occupancy in room2
base_child_occupancyINT(11)Base child occupancy in room2
max_adult_occupancyINT(11)Maximum adult occupancy in room4
max_child_occupancyINT(11)Maximum child occupancy in room4

Success

[
{
"roomtypeunkid": "123400000000000001",
"roomtype": "King",
"shortcode": "KNG",
"base_adult_occupancy": "2",
"base_child_occupancy": "2",
"max_adult_occupancy": "4",
"max_child_occupancy": "4"
},
{
"roomtypeunkid": "123400000000000004",
"roomtype": "Deluxe",
"shortcode": "DLX",
"base_adult_occupancy": "5",
"base_child_occupancy": "5",
"max_adult_occupancy": "6",
"max_child_occupancy": "7"
},
{
"roomtypeunkid": "123400000000000006",
"roomtype": "Suite River View",
"shortcode": "SRV",
"base_adult_occupancy": "3",
"base_child_occupancy": "2",
"max_adult_occupancy": "5",
"max_child_occupancy": "3"
}
]

Error Codes

Error CodeError Name
HotelCodeEmptyHotel code is empty.
NORESACCThis request is valid for Reservation Account only. You may not have opted for Reservation Account Or Hotel Code and Authentication are invalid.
UNAUTHREQUnauthorized request. This request is not valid for this hotel code.
getRoomTypeListErrorRoom Type List error
-1No Data found.
APIACCESSDENIEDYour property doesn’t have access to API integration or Key is incorrect. Please contact support for this.
ParametersMissingMissing parameters.

Configuration

Retrieve Hotel Amenities

This API provides list of hotels amenities of a property which is used for displaying on any website or external applications. The API can return data in JSON formats. The web service responds to HTTP GET requests.

URI Request:

Request parameters are supplied by appending a question mark (?) to the base URI, followed by a sequence of parameter names and values separated by an ampersand (&).

End Point URL

[BaseUrl]booking/reservation_api/listing.php?request_type=[Request_Type]&HotelCode=[Hotel_Code]&APIKey=[API_KEY]&language=[LANGUAGE];

Header

Parameter

NameData TypeDescriptionExample
[BaseUrl] *Live server URLhttps://live.ipms247.com/
[Request_Type] *Use Keyword “HotelAmenity”
[Hotel_Code] *INT(11)Unique Hotel codeXXXX
[API_KEY] *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXX
[LANGUAGE] VARCHAR(20)[Optional] Default is en. 

Pass language code. Language codes are available here.
en

Request 

https://live.ipms247.com/booking/reservation_api/listing.php?request_type=HotelAmenity&HotelCode=XXX&APIKey=XXX&language=en

Success

[
{
"amenity": "Chinar Hotel @ Spa Naftalan"
},
{
"amenity": "STD and IDD dialing access"
},
{
"amenity": "parking lot"
},
{
"amenity": "Fruit basket upon check-in"
},
]

Error Codes

Error CodeError Name
HotelCodeEmptyHotel code is empty.
NORESACCThis request is valid for Reservation Account only. You may not have opted for Reservation Account Or Hotel Code and Authentication are invalid.
UNAUTHREQUnauthorized request. This request is not valid for this hotel code.
HotelAmenityListingErrorHotel amenity listing error.
-1No Data found.
APIACCESSDENIEDYour property doesn’t have access to API integration or Key is incorrect. Please contact support for this.
ParametersMissingMissing parameters.

Configuration

Retrieve Hotel Information

This API provides the list of hotel information for groups or chains. This is mainly used for displaying data to the combo box only. The API can return data in JSON formats. The web service responds to HTTP GET requests.

URL Request:

Request parameters are supplied by appending a question mark (?) to the base URI, followed by a sequence of parameter names and values separated by an ampersand (&).

End Point URL

The base URI for the web service for Chain Properties is as follows :

[BaseUrl]booking/reservation_api/listing.php?request_type=[Request_Type]&GroupCode=[Group_Code]&APIKey=[API_KEY];

The base URI for the web service for Single Property is as follows :

[BaseUrl]booking/reservation_api/listing.php?request_type=[Request_Type]&HotelCode=[Hotel_Code]&APIKey=[API_KEY];

Header

Parameter

NameData TypeDescriptionExample
[BaseUrl] *Live server URLhttps://live.ipms247.com/
[request_type] *Use Keyword “HotelList”
[GroupCode] *
[HotelCode] *
INT(11)Unique Group code Or Hotel codeXXXXXX or XXXX
[APIKey] *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
[LANGUAGE]VARCHAR(20)[Optional] Default is en. 

Pass language code. Language codes are available here.
en

Single PropertiesRequest 

https://live.ipms247.com/booking/reservation_api/listing.php?request_type=HotelList&HotelCode=XXXX&APIKey=XXXXXX&language=en

Chain PropertiesRequest 

https://live.ipms247.com/booking/reservation_api/listing.php?request_type=HotelList&GroupCode=XXXXXX&APIKey=XXXXXX&language=en

Success

[
{
"Hotel_Code": "xxxx", 
"Hotel_Name": "Hotel Abc", 
"City": "Surat",
"State": "Guj",
"Country": "India",
 "Property_Type": "Resort",
 "HotelImages": [
"abc1.jpg",
"abc21.jpg",
]
},
{
"Hotel_Code": "xxxx", 
"Hotel_Name": "Hotel ZY", 
"City": "Surat",
"State": "Gujarat",
"Country": "India",
 "Property_Type": "Hotel", 
"HotelImages": [
"img.jpg"
]
},
]

Error Codes

Error CodeError Name
HotelCodeEmptyHotel code is empty.
NORESACCThis request is valid for Reservation Account only. You may not have opted for Reservation Account Or Hotel Code and Authentication are invalid.
UNAUTHREQUnauthorized request. This request is not valid for this hotel code.
HotelListingErrorHotel List error
-1No Data found.
APIACCESSDENIEDYour property doesn’t have access to API integration or Key is incorrect. Please contact support for this.
ParametersMissingMissing parameters.

Configuration

Retrieve Room Information

This API provides room types, rate types and rate plans 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 *Use Keyword “RoomInfo”
NeedPhysicalRoomsINT(2)If you need Room data, then put it “1”.
It is optional
1 / 0
HotelCode *INT(11)Unique Hotel codexxxx
AuthCode *VARCHAR(300)Unique Authentication codexxxxxxxxxx

Request 

 {    
            "RES_Request": {
            "Request_Type": "RoomInfo",
            "NeedPhysicalRooms":1,
            "Authentication": {
                "HotelCode": "xxxx",
                "AuthCode": "xxxxxxxxxxxx"
            }
    }
} 

Response

NameData TypeDescriptionExample
RoomType.IDIntegerUnique RoomType ID1234500000000000001
RoomType.NameStringRoomType NameGarden View Studio Room
RoomType.Rooms.
RoomID
IntegerRoom Unique ID1234500000000000001
RoomType.Rooms.
RoomName
StringRoom Number/Name101
RateType.IDIntegerUnique RateType ID1234500000000000001
RateType.NameStringRateType NameEuropean Plan
RatePlan.RatePlanIDIntegerUnique RatePlan ID1234500000000000001
RatePlan.NameStringRatePlan NameGarden View Studio Room
RatePlan.RoomTypeIDIntegerRoomType ID1234500000000000001
RatePlan.RoomTypeStringRoomType NameGarden View Studio Room
RatePlan.RateTypeIDIntegerRateType ID1234500000000000001
RatePlan.RateTypeStringRateType NameEuropean Plan
Errors.ErrorCodeResponse Error Code301, 404 etc
Errors.ErrorMessageGenerate Response MessageSuccess, Unauthorized Request etc.

Success

 {  "RoomInfo": {
    "RoomTypes": {
      "RoomType": [
        {
          "ID": "1234500000000000001",
          "Name": "Sea View Deluxe Room",
          "Rooms": [
           {
               "RoomID": "1234500000000000001",
               "RoomName": "101"
           },
          {
                "RoomID": "1234500000000000002",
                "RoomName": "102"
          }
        },
        {
          "ID": "1234500000000000002",
          "Name": "Garden View Studio Room",
          "Rooms": [
           {
                 "RoomID": "1234500000000000004",
                 "RoomName": "201"
            },
           {
                "RoomID": "1234500000000000005",
                "RoomName": "202"
           }
        }
      ]
    },
    "RateTypes": {
      "RateType": [
        {
          "ID": "1234500000000000001",
          "Name": "European Plan"
        },
        {
          "ID": "1234500000000000002",
          "Name": "Continental Plan"
        },
        {
          "ID": "1234500000000000005",
          "Name": "Indian Plan"
        }
      ]
    },
    "RatePlans": {
      "RatePlan": [
        {
          "RatePlanID": "1234500000000000001",
          "Name": "Sea View Deluxe Room",
          "RoomTypeID": "1234500000000000001",
          "RoomType": "Sea View Deluxe Room",
          "RateTypeID": "1234500000000000001",
          "RateType": "European Plan",
          "RatePlanType": "INDEPENDENT"
        },
        {
          "RatePlanID": "1234500000000000015",
          "Name": "Garden View Studio Room",
          "RoomTypeID": "1234500000000000002",
          "RoomType": "Garden View Studio Room",
          "RateTypeID": "1234500000000000001",
          "RateType": "European Plan",
          "RatePlanType": "MASTER"
        }
      ]
    }
  },
  "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
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

Configuration

Check Hotel Authentication

This API checks authentication and returns hotel information if authentication is valid. 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 TypeDescription Example
auth *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
oprn *VARCHAR(150)Use Keyword “gethotelinfo”

Request 

<?xml version="1.0" standalone="yes"?>
<request>
     <auth>xxxxxxxxxxxxxxxxxxxxxxxxxxxxx</auth>
     <oprn>gethotelinfo</oprn>
</request>

Response

NameData TypeDescription Example
statusStringStatus value will be providedValues: ok, errorok
msgStringMessage result will be providedValues: success or error messagesuccess
hotelnameStringName of HotelHotel
hotelcodeIntegerID of Roomxxxx

Success

<?xml version='1.0' standalone='yes'?>
<response>
    <status>ok</status>
    <msg>success</msg>
    <hotelname>Mega Hills Hotel</hotelname>
    <hotelcode>xxxx</hotelcode>
</response> 

Error

<?xml version='1.0' standalone='yes'?>
<response>
    <status>error</status>
    <msg>Invalid Authentication</msg>
</response>

Error Codes

ErrorsDescription
Hotel Code In-ActiveThe Property has been deactivated
API Authkey is deactivatedThe Authcode/Key has been deactivated
Invalid AuthenticationInvalid data
Bad RequestInvalid Request Parameter
Invalid API Request. Don’t have this API accessInvalid Request Method

Click here to Register