In order to perform any operation it is necessary to log in to our system and authenticate yourself.


This message authenticates the user on Hotetec’s platform. A session identifier (hereinafter sessionId) is assigned and must be included in all the request messages sent.


Endpoint: https://hotel.new.hotetec.com/webservice/integrations/pull/openSession 


 

Open session request message

 

The message has the following elements:

 

Element

Mandatory

Values/Format

Description

clientCode

Y

Alphanumeric

Company code or group of agencies to which the user belongs. Request to Hotetec.

systemCode

Y

 

HPH

MPH

XML

Tells which system the availability is requested from.

HPH: Desktop web system

MPH: Mobile web system

XML: XML system

username

Y

Alphanumeric

User’s ID. Request to Hotetec.

password

Y

Alphanumeric

User’s password. Request to Hotetec.

 

Example message (JSON):


{
   "clientCode":"TES",
    "systemCode": "TES",
    "username":"TEST2020",
    "password": "2020TEST!"
}

 

 

Open session response message

 

The message has the following elements:

 

Element

Description

sessionId

Generated session’s ID

notification

Type of notification.

Error: it’s important to check it immediately in order to solve the issue that is being shown by the system.

Warning

Information

notificationDetail

Description of the notification.

 

Example message (JSON):


{
    "sessionId": "TES#20727#404917811765185"
}