Skip to main content

Integration with local storage of product information

In this approach, the system stores product information locally and updates it at certain intervals through the platform's API.

Pros

  • Quick access to product data as the information is stored locally.
  • Ability to implement customizable search and filtering of products.

Integration steps

1. Initialization

  • Setting up an API for client to interact with the platform.
  • Set up parameters for authentication.

2. Get product list

  • Execute GET request to the appropriate API endpoint to retrieve the list of products.
  • Process the response and store the data in the local database.

3. Updating product information

  • Configure a periodic job (such as a cron job) to run a request to update product information.
  • Comparing the received data with local data and updating only the changed records.

4. Search and categorization

  • Implementation of search and filtering mechanisms based on local database data.

5. Create order

  • Set up a request body to create an order, including data about the customer and selected products.
  • Send POST request to API create and order.

6. Get order status

  • Execute GET request to retrieve the status by order ID.