How to synchronize balances and products between keyCRM, website, and ERP

We explain the options for synchronizing balances and products so that all systems used have up-to-date data.
Written by Владислав Пономарь
Updated 11 hours ago

It is important to maintain accurate balances in all systems to avoid problems with orders for out-of-stock products and to replenish stocks in a timely manner.

Let's look at the different synchronization options so you can choose the one that's best for your company.

Preparing for data transfer

Regardless of the data synchronization option, you must first:

  1. Create products with SKUs in CRM: manually, by importing from a file, from publications, or via API;

  2. Activate and configure stocks management.

When doing so, keep the following key points in mind:

  • Data synchronization between systems occurs by product SKU. Therefore, make sure that it is the same for a single product in all systems;

  • Each product and product variant must have its own unique SKU, as it is a separate unit of stocks management;

  • To work with products via API, you may need the product ID (productId) and product variant ID (offerId) from CRM. You can get them in the export file or by requesting a list of products or product variants via API.

Note! The API keyCRM has a limit of 60 requests per minute per API key. Therefore, we recommend setting a pause of 1 second between requests to avoid exceeding the limit.

Option 1. Primary ERP data source (1C, BAS, MoySklad, etc.)

If you perform all operations with products and balances in ERP, developers need to integrate with keyCRM.

To do this, you need to implement a script that will send these changes to keyCRM via API when balances or product data change.

Available API keyCRM methods:

  1. Creating new products and products variants (maximum 100 items in one request);

  2. Updating products and products variants data (maximum 10,000 items in one request);

  3. Updating stocks (maximum 10,000 items in one request).

If you sell through your online store, you will most likely have a similar integration for it, and thus the data will be the same everywhere.

Option 2. The main source of data is a CMS website (WordPress, OpenCart, etc.).

If our module for integration with the CMS on which your website is built does not support the transfer of balances, your developers can modify it.

The logic should be the same as in the first option — changes in products or stock levels occur on the website, and they are sent to keyCRM via API immediately or at certain intervals.

Available API keyCRM methods:

  1. Creating new products and product variants (maximum 100 items in one request);

  2. Updating product and product variant data (maximum 10,000 items in one request);

  3. Updating stock levels (maximum 10,000 items in one request).

Option 3. keyCRM as the primary data source

We recommend using this option, as it will allow you to work in a single window with orders, products, and stock levels, and avoid using ERP (1C, BAS, «MoySklad», etc.):

Now you can ensure the relevance and accuracy of inventory management by synchronizing data between systems for efficient order processing and stocks management.

Tags: stock, stock transfer, stock update, update quantity, API products, API stock, product synchronization, stock synchronization
Did this answer your question?