Sections and articles

API for integrating WiFi authorization systems for Shelter CLOUD

API Assignment

The API is designed to verify the rights of a hotel guest to access WiFi by verifying the provided data with information in the hotel management System (PMS).

A typical scenario

  1. The guest is trying to connect to Wi-Fi.

  2. The authorization system redirects him to the portal, where he requests the room number and date of birth.

  3. This data is sent to the PMS via the API.

  4. If the guest with the specified data is in the hotel, the API returns his profile, and access is granted.

To perform such a check, the authorization system must make requests to the following URLs: https://pms.frontdesk24.ru/wifi/check_guest.aspx?hotel_id=1424

Type of request:

     curl -X POST \

  'https://pms.frontdesk24.ru/wifi/check_guest.aspx?hotel_id=1424' \   -H 'Content-Type: application/json' \   -H 'cache-control: no-cache' \   -H 'content-type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW' \   -F api_key=7aacc405-5fee-4f33-aeb4-f33741511dc5 \   -F 'par={"room_number": "1", "birth_date": "01.01.1991"}'

Important: The hotel ID (in the example 1424) and the token (in the example 7aacc405-5fee-4f33-aeb4-f33741511dc5) can be obtained from technical support when the hotel is connected.

Response example for successful verification:

 {     "success": false,     "message": {         "guest_id": "2001250",         "hotel_visits": [             {                 "room_num": "1",                 "join_date": "01.03.2020",                 "leave_date": "13.01.2019"             }         ],         "fio": "Ivan Ivanov Ivanovich",         "birth_date": "01.01.1991",         "citizenship": "RU",         "phone": "+79151111111", "identity_document_type": "PASSPORT OF THE Russian FEDERATION",         "identity_document_ser": "1234",         "identity_document_num": "12345678",         "identity_document_issued_date": "14.06.2017",         "identity_document_expire_date": "", "identity_document_issuer": "ATS No.132"     } }