Example of integration

Synchronization of product data

The example shows the retrieval of product data in a JSON file.

Product data download from Deante

1. Data download

To retrieve the data, the customer's application sends a request to Deante's API for product data.

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

Last modifed at : 2022-12-28