Introduction

API

Sales Layer has a web service that meets the standards of the REST architecture. This service is accessible clicking this link. 

The web service, which from now on will be referred to as the API, allows us to extract from, and enter information to a Sales Layer account via third-party services, such as a web application, mobile app, data mining applications, and more. The extraction or introduction of data to Sales Layer via the API requires the configuration of at least one Export connector (for data extraction), or an import connector for data entry. The connectors must be secured using a token, which can be obtained directly from the Sales Layer cloud platform. The requests through the API will be made with the connection and security parameters, which are described later in the “Cloud” side of Sales Layer. The extraction responses, as well as the data that can be introduced, is always dependent on the configuration made in the corresponding connectors on the Cloud side of the PIM.

The following graphic shows the API request architecture.

Arquitectura de peticiones

As the Sales Layer API is a RESTful web service, it is possible to exchange data with the Sales Layer cloud platform, using different programming languages. The exchange of information uses Javascript Object Notation (JSON), a data representation structure widely used in this type of web services and one which is well supported by most popular programming languages including Java, JavaScript, PHP, C, Python, etc.

The Sales Layer API also allows you to obtain output data in Extensible Markup Language (XML) format.

Sales Layer Rest API works transfering the whole catalog as delimited by the channel. That allows to easily replicate all the info in the target where it’s going to be used with an optimal performance.

Sales Layer provides an SDK (for now, available only in PHP) to allow automation of this process of data replication in an easier way.