All API calls must be made through this subdomain:
https://api.saleslayer.com
Sending the request
The client must include the required parameters to execute the query correctly. These parameters can be sent in the URL with GET or in the request body with POST.
Mandatory identification and security parameters
| Parameter | Description |
|---|---|
code | Connector relationship code. |
time | timestamp() or an international UNIX date. |
unique | mt_rand() or rand(), used as a random security number. |
key256 | SHA2 code built from the combination of code + secret_key + time + unique. |
Other shaping parameters
The following parameters can only be used in GET requests.
| Parameter | Description |
|---|---|
last_update | Timestamp of the last data update. If it is not sent, the API returns the entire catalog structure. Any connector change resets this value. |
ver | API version you want to work with. If omitted, version 1.17 is assumed. Versions 1.17 and 1.18 are currently active. |
pagination | Parameter available only in version 1.18. It corresponds to the number of items per page. It is an approximate value because the API works with ranges. If it is not sent, 1000 items are exported by default. |
compression | Boolean to indicate whether you prefer a compressed response. The default value is 1. |
test | Indicates that you only want to verify the connection and authentication. |
group_category_id | Boolean. The default value is 0. If set to 1, the API groups multi-category products. |
group_category_delimiter | Delimiter for grouped multi-category values. The default is a line break. |
parents_category_tree | Boolean. The default value is 0. If set to 1, the API also returns data for upper-tree categories related to the detected changes. |
same_parent_variants | Boolean. The default value is 0. If set to 1, the API treats all variants sharing the same parent product as modified when one of them is modified. |
get_file_refereneces | Boolean. The default value is 0. If set to 1, the API returns image and file names as indexes instead of the hash code. |
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article