Connection process
Note: To retrieve data from Sales Layer with API 2.0 it is not necessary to create a connector within the PIM channel Marketplace. To obtain an API Key please contact Sales Layer support.
Add the appropriate endpoint or query parameters to the base URL https://api2.saleslayer.com/rest/Catalog/. The base URL is used to build requests to the API. Endpoints, query parameters, and filters are appended to it in order to obtain specific data.
Refer to the relevant sections in this documentation for details on endpoints such as Metadata, Products, Categories, Variants, and Custom Entities, as well as advanced filtering and ordering options.
When making requests to the Sales Layer REST API, specific headers are required to authenticate and customize the response.
Below is a description of the headers used across all endpoints and their purpose.
X-API-KEY
This header is mandatory for all API requests and must include your unique API key to authenticate the request.
Note: If you do not have an API key, please contact our support team to provide you with one.
Accept-Language
This header specifies the language in which the API should return the response.
If not included, the API will default to the language configured for your Sales Layer account.
When catalog items have multi-language fields (including local languages), this header can be used to indicate the desired language for those fields.
Available endpoints
1 - [GET] Endpoint
Provides information about Categories/Products/Variants/Custom Entities and their relationships with other entities. Thanks to the metadata, you can query, filter, and navigate the data efficiently.
More information: https://docs.api.saleslayer.com/category/available-endpoints
2 - [POST] Endpoint
Provides information on how to create Categories/Products/Variants/Custom Entities from the REST API.
More information: https://docs.api.saleslayer.com/category/available-post-endpoints
3 - [PATCH] Endpoint
Provides information on how to update Categories/Products/Variants/Custom Entities from the REST API.
More information: https://docs.api.saleslayer.com/category/available-patch-endpoints
4 - [DELETE] Endpoint
Provides information on how to delete Categories/Products/Variants/Custom Entities from the REST API.
More information: https://docs.api.saleslayer.com/category/available-delete-endpoints