Lovat API Magento 1 documentation

Step 1

  1. Download files from link https://github.com/LOVAT-compliance/vatcompliance-magento1-api
  2. Install files (installation is described below)
  3. Configure access to API (access configuration is described below).

Step 2

Installing the plugin

  1. To install the plugin, download the archive from https://github.com/LOVAT-compliance/vatcompliance-magento1-api
  2. After downloading the archive, you should see 2 folders: etc., Interfacing.
  3. Go to /app/code/community, create folder “Lovat”
  4. Move folder “Interfacing” into folder “Lovat”
  5. Afterward, find the file Lovat_Interfacing.xml in the folder ,etc.
  6. Then go to /app/etc./modules and move Lovat_Interfacing.xml there.
  7. After completing all of the previous steps, refresh caches in Magento 1 System-> Cache Management ->

Step 3

Configure API access

  1. Go to: System -> Web Services -> REST Roles
  2. Go to: Guest role
rest roles page - choosing role name

3.On the left side, find Role API Resources, after click, you will see Resource Access

4.Select custom, then you will see accesses to API

5.Select Lovat API REST

role info page - choosing role resources

6.Save the role

7.Go to: в System -> Web Services -> REST Attributes

8.Go to: Guest

rest attributes page - choosing user type

9.Select Lovat API REST

Editing of attribute rules for Guest role page

After that go to the module Lovat API, you will see it in the menu

choosing of Lovat Api option

Lovat API -> Lovat API settings

Token settings page - Lovat Api

10.Press the button “Token Settings, you will be taken to the settings

page of creating of the new access key

11.Here you need to generate an access key, the key is generated automatically

You can find the key here:

access key page - Lovat Api

To create a new key, go to Token Settings

page with current and new access key

API Key is used for authorization

Key: x-lovat-api-key

Value: key generated via plugin Lovat API