Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Go to Service > Stations and Devices
  2. Select a required restaurant and go to the cash server
  3. In the server properties:
    • Specify a free port in the HTTP Data Port field. Optionally, enable the Use Free Listen Port setting to make the server choose a different port when the port specified in the HTTP Data Port property is busy.
    • In the HTTP Restrictions Rights section, select the HTTP _ Access privilege in all fields
      Image Added
  4. Save Changesthe changes
  5. Reboot Restart the cash server.

If you want need to create a separate privilege and role with HTTPS access right, click below.

Expand
titleCreating a Privilege and a Role
  1. Go to

...

  1. Service > Manager Station > Object Privileges

...

  1. Add a new privilege,

...

  1. for example HTTP_port

...


  1. Image Added
  2. Go to

...

  1. Options > OLAP Reports >

...

  1. Reporting Servers
  2. Select the required

...

  1. reference server
  2. In the server properties:
    • In the HTTP Server section, find the HTTP Data Port field and enter a free port.

...

    • Check the Use Free Listen Port

...

    • box to

...

    • make the program select a different port when the port specified in the HTTP Data Port property is busy.
      To access the web interface of this server, you can use:
      • The port specified in the reference server properties

...

      • in the manager

...

      • station  — HTTP Data Port
      • The port specified in

...

      • the [TSPSOC] section

...

      • of rk7srv.ini — the port parameter

...

    • In the HTTP

...

    • Rights section,

...

    • select the created privilege in all fields
    • In the Restrictions section, include the created privilege in the object privilege
      Image Added
  1. Save Changes
  2. Restart the server
  3. In the manager station, go to

...

  1. Service > Stations and Devices
  2. Select a required restaurant and go to the cash server
  3. In the server properties:
    • In the HTTP Server section, find the HTTP Data Port field and

...

    • specify a free port.
      Enable the Use Free Listen Port setting to

...

    • make the program select a different port when the port specified in the HTTP Data Port property is busy.
      To access the web interface of this server, you can use:
      • The port specified in the

...

      • reference server properties in the manager

...

      • station  — HTTP Data Port
      • The port specified

...

      • in the [TSPSOC] section

...

      • of rk7srv.ini — the port parameter

...

    • In the HTTP

...

    • Rights section,

...

    • select the created privilege in all fields
      Image Added
  1. Create a role with rights to the created privilege
    Image Added

    Info

    When authorizing HTTPS requests, only the roles of the current restaurant and the

...

  1. head office are used.


  2. For the created role, add an employee, set a password for him.
    The name and password of this employee will be used for authorization on the server via HTTPS.

...

  1. Image Added

Requests to the cash server should be sent to the following URL:

Code Block
https://*IP:HTTPDataPort*/rk7api/v0/xmlinterface.xml

IP:HTTPDataPort you You need to specify your own IP:HTTPDataPort.

To access the interface, you must need to send a login and password — the name and password of an employee of the Basic Authorization type when sending each request.
Data exchange with the cash server must should be performed in UTF-8 encoding.

Checking the XML interface through the built-in utility

To validate an XML interface over an HTTPS interface:

Visit https://ip:port/webgui/iserxmltest.htm. For example, https://127.0.0.1:13665/webgui/iservxmltest.htm
Enter the details of the created employee: username and password
Enter the text of the XML request to execute
Click the Execute button
The result should be like the picture below:

...