Example of integration
An API key is required to download the data
The example includes the phrase API_KEY. Each customer must insert their individual access key in place of this phrase.
More information is available in the section Authorization
Synchronization of product data
The example shows the retrieval of product data in a JSON file.
1. Data download
To retrieve the data, the customer's application sends a request to Deante's API for product data.
Remember to replace the phrase API_KEY with your access key.
https://api.deante.pl/api/products?key=API_KEY
2. Verification of eligibility
The Deante server verifies the API key provided and, after successfully verifying the permissions, provides the corresponding product database file. If there is a typo, the API will refuse to send the data.
3. Product data
The structure of the returned file is described in detail in section Data structure.
4. Updating product data
After receiving the JSON file from Deante, the application needs to match the fields from the file with the fields in the client application database. We recommend storing the checksum md5 in the database. Only in case of different values, the decision to update the product is made. This approach will significantly reduce the number of operations performed. If the product index is not present in the customer database, the product should be created from scratch.
We described the data comparison process in more detail in the Data refreshing/Changes comparison section
5. Optimization and thumbnail creation
The process is described in the article regarding resources