Others

Retrieve Guest

This API provides the guest profiles by filters. Most properties maintains guest database to accumulate the volume of returning guest, for building good relationships and create a better guest experience. This API can return data in JSON formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/json

Parameter

KeyDatatypeDescriptionExample
Request_Type *Use Keyword “GuestList”
AuthCode *Varchar(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
HotelCode *Integer(11)Unique Hotel codeXXXX
IdsVarchar(20)ID  of Travel Agentxxxxxxxxxxxx
NamesVarchar(20)Names of travel agentPeter

FromDate

Date
Update From date. [Format: yyyy-mm-dd]2020-07-01

ToDate

Date
Update To date. [Format: yyyy-mm-dd]2020-07-03
isActiveINT(1)Staus : active or not
1=active, 0=inactive
1 or 0

Request (Without Optional Value)

{
       "RES_Request": 
        {
                 "Request_Type": "GuestList",
                 "Authentication": {
                       "HotelCode": "xxxxx",
                       "AuthCode": "xxxxxxxxxxxxxxxxxxxxxx"
                 }
        }
}

Request (With Optional Value)

{
   "RES_Request":
   {
    "Request_type": "GuestList",
     "Authentication": {
             "HotelCode": "xxxxx",
             "AuthCode": "xxxxxxxxxxxxxxxxxxxxxx"
     },
    "Ids": [ //Optional Filter
        "xxxx",
        "xxxx"
     ],
    "Names": [ //Optional Filter
        "AC Company"
    ],
    "Created": { //Optional Filter
        "from_date": "2019-12-05T00:00:00Z",
        "to_date": "2019-12-10T00:00:00Z"
    },
    "Updated": { //Optional Filter
        "from_date": "2019-12-05T00:00:00Z",
        "to_date": "2019-12-10T00:00:00Z"
    },
    "isActive":"0" //Optional Filter,0 or 1 values where 0 = deactivated company and 1= activated company
  }
}

Response

NameDatatypeDescriptionExample
IdIntegerUnique Company agent idxxxxxxxxxxxxx
AccountNameStringBusinessnameStart Travels
AccountCodeStringShort codeSTR.
Contact_personStringContact person nameMr.James
AddressStringAddress of Travel agentNew York
CityStringCity nameNew York
PostalCodeIntegerPostal code101101
StateStringState nameNew York
CountryStringCountry nameUSA
PhoneIntegerPhone number123456
MobileIntegerMobile number1234567890
FaxIntegerFax Number123456789
EmailStringEmail idabc@rmail.com
TaxIdStringTax id1
RegistrationNoStringRegistration number123
CommissionPlanStringCommission plan name% on all nights (exclu. Tax)
CommissionValueDecimalCommission plan value5
Discount on the standard rate %DecimalDiscount percentage5
IsActiveStringIsactive or note0 or 1

Success

Response:
{
    "Companies": [
        {
             "Id": "51270000000017",
             "AccountName": "IBM", //Business Name
             "AccountCode": "", // Short Code
             "Contact_person": "Mr. Azad Singh",
             "Address: "Rheinlanddamm 207-209",
             “City": "Dortmund",
             "PostalCode": "44137",
             "State": "",
             "Country": "DE",
             “Phone”:”4334534534”,
             “Mobile”:”9000123456”,
             “Fax”:””,
             “Email”:”azadxyz@yahoo.co.in”,
             “TaxId”:”43534534534”,
             “Registration No”:”A3428973449284”,
             "IsActive": true

        }
    ]
}

Error Codes

Error CodeError Name
100Missing required parameters
500Error occurred during processing.
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
208Both Updated from_date and to_date are mandatory if any one date is entered
210No data found
105From Date is missing.
106From Date is not a valid date
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
205Created to_date should be greater than from_date
108(To Date) – To Date is not a valid date
207Updated to_date should be greater than from_dat
107To Date is missing

Others

Create a Travel Agent

This API helps to insert Travel agents for a property or group of properties in a chain. The API can return data in JSON formats. The web service responds to HTTP GET requests. This API can return data in JSON formats. The web service responds to HTTP GET requests.

You need to take eZee Reservation if you want to allow Travel Agent to book a room on behalf of guests.

End Point URL

[BaseUrl]booking/reservation_api/listing.php?APIKey=[API_KEY]&request_type=[Request_Type]&salutation=[salutation]&name=[name]&businessname=[businessname]&country=[country]&email=[email]&HotelCode=[Hotel_Code]&ismailsend=[Ismailsend]

Header

Parameter

NameData TypeDescriptionExample
[BaseUrl] *Live server URLhttps://live.ipms247.com/
[Request_Type] *Use Keyword “InsertTravelAgent”
[Hotel_Code] *INT(11)Unique Hotel codeXXXX
[API_KEY] *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXX
[name] *VARCHAR(100)Travel agent nameuser123
[businessname] *VARCHAR(100)Business namexxxxxx
[salutation] *VARCHAR(10)Salutation xxxx
[country] *VARCHAR(100)Country nameUSA
[email] *VARCHAR(100)Email idabc@gmail.com
bccmailidVARCHAR(100)Add Email-id for taking Bcc copyabc@gmail.com
businesssourceVARCHAR(10)Business sourcetrue/false
isusercreatedVARCHAR(10)Is user createdtrue/false
percentdiscountINT(11)Percentage discount5
addressVARCHAR(200)AddressA4-Golden street
cityVARCHAR(100)CityNew York
stateVARCHAR(100)Statecalifornia
zipcodeINT(11)Zipcode123456
phoneINT(11)Phone number123456789
mobileINT(11)Mobile number1234567890
faxINT(11)Fax number123456
allowtoviewccblockVARCHAR(10)For allow to view credit card blocktrue/false
SendemailtoguestVARCHAR(10)For send booking voucher email to Guest if booking made by Travel Agent from booking enginetrue/false
[Ismailsend] *VARCHAR(10)For Send email to Travel Agent to share Login Information.
true/false

Request 

https://live.ipms247.com/booking/reservation_api/listing.php?APIKey=XX&request_type=InsertTravelAgent&name=XX&businessname=GreenTravel&salutation=MR&country=India&email=XX&HotelCode=XX&percentdiscount=10&businesssource=true&isusercreated=true&ismailsend=true

Success

{
"26":"2600000000001612",
"1023":"102300000000000844",
"3419":"341900000000000098"
}

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.
MANDATORYPARAM[salutation,name,businessname,email,country ] This Parameters are mandatory.
UnknownErrorUnknown Error
InvalidHotelCodeInvalid Hotel code.Please check your property code.
BadRequestBad request type.

Others

Retrieve A Travel Agent

This API provides the travel agent profiles by filters. Most properties use this information when a guest books a room through a Travel Agency. Also hotels use this data to accumulate the booking volume they receive from these travel agents on an ongoing basis. This API can return data in JSON formats. The web service responds to HTTP POST requests.

End Point URL

Header

Content-Type: application/json

Parameter

KeyDatatypeDescriptionExample
Request_Type *Use Keyword “TravelAgentList”
AuthCode *Varchar(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
HotelCode *Integer(11)Unique Hotel codeXXXX
IdsVarchar(20)ID  of Travel Agentxxxxxxxxxxxx
NamesVarchar(20)Names of travel agentPeter

FromDate

Date
Update From date. [Format: yyyy-mm-dd]2020-07-01

ToDate

Date
Update To date. [Format: yyyy-mm-dd]2020-07-03
isActiveINT(1)Travel agent active or not 1=active, 0=inactive1 or 0

Request 

{
"RES_Request": {
"Request_Type": "TravelAgentList",
"Authentication": {
"HotelCode": "xxxx",
"AuthCode": "xxxxxxxxxx"
},
"Ids": [
"3ed9e2f3-4bba-4df6-8d41-ab1b009b6425"
],
     "Names": [
],
     "Created": {
 "from_date": "2019-12-05",
         "to_date": "2019-12-10"
     },
     "Updated": {
"from_date": "2019-12-05",
         "to_date": "2019-12-10"
     },
     "isActive":"1"

}
}

Response

NameDatatypeDescriptionExample
IdIntegerUnique Travel agent idxxxxxxxxxxxxx
AccountNameStringTravel agent BusinessnameStart Travels
AccountCodeStringTravel aget short codeSTR.
Contact_personStringContact person nameMr.James
AddressStringAddress of Travel agentNew York
CityStringCity nameNew York
PostalCodeIntegerPostal code101101
StateStringState nameNew York
CountryStringCountry nameUSA
PhoneIntegerPhone number123456
MobileIntegerMobile number1234567890
FaxIntegerFax Number123456789
EmailStringEmail idabc@rmail.com
TaxIdStringTax id1
RegistrationNoStringRegistration number123
CommissionPlanStringCommission plan name% on all nights (exclu. Tax)
CommissionValueDecimalCommission plan value5
Discount on the standard rate %DecimalDiscount percentage5
IsActiveStringIsActive or not0 or 1

Success

{
    "TravelAgent": [
        {
            "Id": "12340000000000028",
            "AccountName": "ABC",
            "AccountCode": "TABC",
            "Contact_person": "Mr. James",
            "Address": "A234-A",
            "City": "New York",
            "PostalCode": "1000011",
            "State": "New York",
            "Country": "USA",
            "Phone": "9898989898",
            "Mobile": "9898989898",
            "Fax": null,
            "Email": "abc@email.com",
            "TaxId": "1",
            "RegistrationNo": null,
            "CommissionPlan": "% on all nights (exclu. Tax)",
            "CommissionValue": "4.0000",
            "Discount on the standard rate %": "7.0000",
            "IsActive": true
        }
    ]
}

Error Codes

Error CodeError Name
100Missing required parameters
500Error occurred during processing.
502Request Type is missing
101Hotel Code is missing
102Authentication Code is missing
208Both Updated from_date and to_date are mandatory if any one date is entered
210No data found
105From Date is missing.
106From Date is not a valid date
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
205Created to_date should be greater than from_date
108(To Date) – To Date is not a valid date
207Updated to_date should be greater than from_dat
107To Date is missing

Others

Retrieve a Company

This API provides the company profiles by filters. Most properties use this information to source the correct address for invoicing. Also, hotels use this data to accumulate the booking volume they receive from these companies on an ongoing basis. This 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 “CompanyList”
HotelCode *INT(11)Unique Hotel codeXXXX
AuthCode *VARCHAR(300)Unique Authentication codeXXXXXXXXXXXXXXXXX
Ids VARCHAR(300)Add Identity id and also, can add multiple recordsAbc4578lk, yzx7426kj
Names VARCHAR(300)Add Business name and also, can add multiple records33Comp, Abc Company
Created. from_dateDATETo send a created from date2020-07-05
Created. to_dateDATETo send a created to date2020-07-07
Updated. from_dateDATETo send a updated from date 2020-07-05
Updated. to_dateDATETo send a updated to date2020-07-07
isActiveINT(11)Is Active in 1 or 01

Request 

{   
"RES_Request": {
        "Request_Type": "CompanyList",
        "Authentication": {
           "HotelCode": "xxxx",
           "AuthCode": "xxxxxxxxxx"
        },
       "Ids": ["abc4578lk","yzx7426kj"],
       "Names": ["33Comp"],
        "Created": {
           "from_date": "2019-12-05",
           "to_date": "2019-12-10"
       },
       "Updated": {
           "from_date": "2019-12-05",
           "to_date": "2019-12-10"
       },
       "isActive":"1"
       }
}
 

Response

NameData TypeDescriptionExample
IdINT(11)Company record id2700000000003934
AccountNameVARCHAR(255)Business name33Comp
AccountCodeVARCHAR(255)Business shortcode33c
Contact_personVARCHAR(255)Contact person name33CompAccount
AddressVARCHAR(255)Address datastreet -5, abc road
CityVARCHAR(255)Cityromania
PostalCodeVARCHAR(255)PostalCode895623
StateVARCHAR(255)State
CountryVARCHAR(255)CountryRomania
PhoneVARCHAR(100)Phone789561234
MobileVARCHAR(100)Mobile44545454554
FaxVARCHAR(100)Fax
EmailVARCHAR(255)Email33Comp@gmail.com
TaxIdVARCHAR(255)TaxId78
RegistrationNoVARCHAR(255)RegistrationNovb89
IsActiveVARCHAR(100)IsActivefalse

Success

{    "Companies": [
        {
            "Id": "2700000000003934",
            "AccountName": "33Comp",
            "AccountCode": "33c",
            "Contact_person": "33CompAccount",
            "Address": "street -5, abc road",
            "City": "romania",
            "PostalCode": "895623",
            "State": null,
            "Country": "Romania",
            "Phone": "789561234",
            "Mobile": "44545454554",
            "Fax": null,
            "Email": "33Comp@gmail.com",
            "TaxId": "78",
            "RegistrationNo": "vb89",
            "IsActive": false
        }
    ]
}

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
107To Date is missing
109Please check From and To date. To Date should be greater than fromdate
208Both Updated from_date and to_date are mandatory if any one date is entered
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
106From Date is not a valid date
108To Date is not a valid date
112Error: Date range is too long. Please provide dates for 1 month.
210No data found

Others

Retrieve Guest Stays Statistics

This API gives us the guest stays statistics by which one can accumulate the volume of returning guests thereby helping to create the best guest experience. This API can return data in CSV 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 

{  
    "hotel_code":"xxxx",
    "authkey" : "xxxxxxxxxxxx"
}

Response

NameData TypeDescription Example
Guest NameStringTo get a guest nameDaniel L
Guest EmailStringTo get a guest email addressDaniele123@yahoo.com
Total Number of staysStringTo get a guest’s total number of stay in a hotel2
First stayDateTo get a guest’s first stay2020-05-02
First Reservation NoStringTo get a guest’s first reservation number5-1
First Folio NoStringTo get a guest’s first folio number5
Last stayDateTo get a guest’s last stay2020-05-02
Last Reservation NoStringTo get a guest’s last reservation number5-1
Last Folio NoStringTo get a guest’s last folio number5
Next stayDateTo get a guest’s next stay
Next Reservation NoStringTo get a guest’s next reservation number
Next Folio NoStringTo get a guest’s next folio number
Lifetime SpendingStringTo get amount spend2560.0000

Success

"Guest Name","Guest Email","Total Number of stays","First stay","First Reservation No","First Folio No","Last stay","Last Reservation No","Last Folio No","Next stay","Next Reservation No","Next Folio No","Lifetime Spending"
"Mr. Michel Joy","","1","2020-03-11","5-1","2","2020-03-11","5-1","2","","","","3863.0000"
"Mr. Rechel","","1","2020-03-11","5-2","3","2020-03-11","5-2","3","","","","0.0000"

Error Codes

Property Deactivated : This property has been deactivated
OpenAPI Record invalid : Unauthorized Request. This request is not valid for this hotel code
OpenAPI Deactivated : Auth Code is inactive.
OpenAPI Request : Invalid API Request. Don't have this API access.

Click here to Register