New version of the API: how to create an access key and a session ID

ANT-Logistics has released a new version of the API (v2). In this article, we will tell you how to create an access key and perform a request.


Pay attention! The previous version of API (v1) also works, but it will not be updated and developed.

Go to Settings 1 > Access keys 2. Add a new access key using the button "+" 3. In the new window Adding record  4 enter a description and the valid till. Click OK.

After that, an access key will be generated. Click Copy Access Token.

Next, go to the updated API > Auth & Session 1. Click Try Out 2. In the Access_code field, insert the access key 3. Click Execute 4.

Copy the session ID. It will be necessary to use it to perform the methods.

From the side menu, select Directory and the type of method 1. Three types of method can be used in the API:

  • GET – used to receive data;
  • POST – used to edit data;
  • DEL – with the help of this type, necessary records are deleted.

Click Try Out 2. Insert the session identifier into the Session_Ident field 3. If necessary, enter the number of pages to receive information 4 (GET methods in the API are available page by page, the limit is 500 records per request). Click Execute 5. After that, the answer to the  request will be available.

Pay attention! To be able to use API in the ANT-Logistics service, it is necessary to set the Type of SP code mapping: numeric or text.

If you are interested in the described functionality, we are ready to demonstrate its operation, perform the necessary settings and provide access to the service. To do this, leave an application on the ANT-Logistics website.

Comments

Popular posts from this blog

Contacting technical support: how to take a screenshot?

Loading sheet - accounting of goods

Calculation of routes by product groups