Sales Layer SDK is designed to help you connect external applications to your Sales Layer account in a practical way by using the same RESTful service behind API 1.18.
It is especially useful when you want to speed up integration development and work with ready-to-use classes and example scripts instead of building every request from scratch.
The SDK is available for PHP and supports bidirectional communication with Sales Layer, which means you can both retrieve information from the PIM and send information back into it.
What you can do with the SDK
With the SDK, you can:
- Connect external systems to Sales Layer using the API in a simpler way.
- Work with example scripts for common integration scenarios.
- Retrieve data from Sales Layer.
- Import data into the PIM.
- Export data to a database in supported scenarios.
Overall, the SDK helps you build integrations faster by providing a practical layer on top of the API for the most common workflows.
How it relates to API 1.18
The SDK works with the same integration model as API 1.18. It relies on the Sales Layer REST service and is intended for bulk data extraction and insertion scenarios.
If you already use API 1.18, the SDK gives you a more structured way to work with those same requests from a PHP environment.
Connectors
Just like API 1.18, the SDK uses the same connectors as the integration mechanism.
Through these connectors, you can define how information is structured, filtered, and exchanged between Sales Layer and your external system.
To work with the SDK, you need to configure at least one of these connectors:
- A custom connector for data extraction.
- An import connector for data input.
As with API 1.18, connectors should be protected with a token from the connector parameters.
Service URL
The service is available through this URL:
https://api.saleslayer.com
Exchange format
As the SDK works on top of a RESTful web service, information is exchanged in JSON. This makes it easier to integrate Sales Layer with external systems while keeping the data flow aligned with the connector configuration.
Based on the connector settings, the SDK will work with the data that matches the configured structure and filters.
Typical workflow
A common SDK workflow usually looks like this:
- Configure the connector in Sales Layer.
- Secure it with a token.
- Use the SDK classes in PHP to connect to the API service.
- Retrieve or send data according to the connector configuration.
For output processes, the first synchronization usually returns all items that match the configured filters. After that, the flow can focus on the items that have been modified, depending on how the integration is set up.
Best practices
Before building your integration, make sure the connector structure matches the data you want to exchange. It is also a good idea to start from one of the provided SDK examples, especially if you need export, pagination, or import logic, because that makes testing and adaptation much easier.
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