Api reference guide

The Sage X3 platform provides access to different API described below.

Additional X3 functions have also been developed to replace X3 version 6 functions. These functions are useful in the Versions 7 and above development process. They are also described in this page, module by module. The title of the entry corresponds to the function and the script file that was present in version 6.

Technical libraries

Access to the node.js server resources from an X3 script

These libraries are available only for V12 platform (in version V12 native mode or in Classic mode).

Calling services provided by the X3 platform

Calling web services provided by X3 uses api1 protocol based on http requests:

The different services associated with the entities are:
* The list of entity instances (used by the query facet in the client) through a GET query request.
* The details of an entity instance (used by the details facet in the client) through a GET details request.
* Creation of an entity instance (used by the edit facet in the client) through a POST request.
* Updating an entity instance (used by the edit facet in the client) through a PUT request.
* Deletion of an entity instance (called from the query or details facet in the client) through a DELETE request.

Supervisor libraries

These libraries provide access to common services supplied by the supervisor layer. Some of them can be used only in Classic code code, some others can be used only in code associated to classes and representations, and some of them can be used independently.

Libraries dedicated to classic code

Libraries dedicated to V7 + code

Libraries usable in both modes

Web services

The technical platform provides a support for SOAP web services. These web services work exactly as the V6 web services worked (the format is the same).

When working with classes and representation, it is also possible to work with REST web services

The list of SOAP web services added for platform purposes are here:

Miscellaneous

A library allows to launch an executable program (on windows only) from the browser (only in classic code). For security reasons, every user has to approve the use of the executable from browser at the first use.
The corresponding documentation can be found here

Accounting libraries

Currency management

Subprog description V6 library Versions 7 and above library
Currency control CONTDEV From TRTDEV CONTDEV From TRTDEV_SYRA