API EN: различия между версиями

Материал из WiKi - UserSide
([IronBot] Sync EN localization from RU)
([IronBot] Sync EN localization from RU)
 
Строка 1: Строка 1:
'''en''' | [[API_UK|uk]] | [[API|ru]]
'''en''' | [[API_UK|uk]] | [[API|ru]]
'''NOTICE: The API documentation has moved to a [https://api-docs.userside.eu/ dedicated site]. This page will no longer be updated.'''


This section describes how to use the built-in ERP "UserSide" API in your own projects.
This section describes how to use the built-in ERP "UserSide" API in your own projects.


The API does not currently cover all functionality and is being expanded gradually, so this page may change frequently.
The API currently covers part of the ERP functionality and is being expanded.


== Operating principle ==
== Operating principle ==

Текущая версия от 14:43, 26 ноября 2026

en | uk | ru

NOTICE: The API documentation has moved to a dedicated site. This page will no longer be updated.

This section describes how to use the built-in ERP "UserSide" API in your own projects.

The API currently covers part of the ERP functionality and is being expanded.

Operating principle

The /api.php file is responsible for interaction.

Both GET and POST requests can be used.

Starting with version 3.21, all requests that write or modify data are processed only through POST.

Input parameters:
Required:
 key - API key
 cat - request category
Optional:
 skip_internal_api - flag - do not run internal system triggers (useful when an API method is called from a trigger and would otherwise trigger itself during normal operation)
Other additional parameters, depending on the category (see below in the relevant categories). 
For example:
 customer_id - customer id
 is_potential - flag. It can be 1 or 0. Most flags use the is prefix.

Example request:
api.php?key=apikey&cat=abon&action=msg&usercode=1
Returned data:
 If the request performs an action or returns data, the response is returned in JSON format:
  array(
   [Result] => OK / ERROR
   [ErrorText] => Error text, if an error occurred
  )
Also check the HTTP response code. For errors or invalid requests, the HTTP code will differ from 200.

Basic setup

Configure the API Key.

Categories