Call structure

Modified on Wed, 6 May at 12:24 PM

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


ParameterDescription
codeConnector relationship code.
timetimestamp() or an international UNIX date.
uniquemt_rand() or rand(), used as a random security number.
key256SHA2 code built from the combination of code + secret_key + time + unique.


Other shaping parameters


The following parameters can only be used in GET requests.

ParameterDescription
last_updateTimestamp of the last data update. If it is not sent, the API returns the entire catalog structure. Any connector change resets this value.
verAPI version you want to work with. If omitted, version 1.17 is assumed. Versions 1.17 and 1.18 are currently active.
paginationParameter 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.
compressionBoolean to indicate whether you prefer a compressed response. The default value is 1.
testIndicates that you only want to verify the connection and authentication.
group_category_idBoolean. The default value is 0. If set to 1, the API groups multi-category products.
group_category_delimiterDelimiter for grouped multi-category values. The default is a line break.
parents_category_treeBoolean. 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_variantsBoolean. 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_referenecesBoolean. 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

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article