Sync Loyverse inventory to Shopify

I want to create a scenario that synchronizes the inventory levels from Loyverse to Shopify based on SKU matching. The scenario should work as follows:

  1. Retrieve the updated inventory data from Loyverse.

  2. Filter the data so that only products with SKUs that also exist in Shopify are processed.

  3. For each matching product, update the inventory level in Shopify to match the inventory count from Loyverse.

  4. If a SKU exists only in Loyverse and not in Shopify, no action should be taken.

I have spent around 40 hours in total trying to make it work. It simply refuses to do so. I could not figure it out how to accomplish this.

I would really appreciate any ideas or guidance.

Thank you :pray:

Welcome to the Make community!

To allow others to assist you with your scenario, please provide the following:

Relevant Screenshots

Please share screenshots of your scenario, any error messages, relevant module fields, and relevant filter settings. It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

Scenario Blueprint

Please export the scenario blueprint file to allow others to view the mapped variables in the module fields. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

Output Bundles of Modules

Please provide the output bundles of the modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A. Upload as Text File

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

By providing these details, it will allow others to assist you better.

Hi, samliew!

Thank you for replying.

I made the scenario like this:

First (Module 1), I used the Loyverse Watch Updated Inventory Levels to extracts the information of all products that suffered a change in inventory.

Because Module 1 only extracts the Variant ID in Loyverse, I made sure that the SKUs in Shopify match the Variant IDs in Loyverse.

Then I used the Shopify Search for Products module (Module 2), to get all information of all products in Shopify, including the SKU.

Then I created a filter to match Varian IDs with SKUs. Then I used again the Shopify Search for Products module (Module 3), to get only the matching products and an agregator to extract the information I need.

Lastly, I used a Shopify Shopify Update an Inventory Level, to update the inventory level of the matching products.

The scenario is working in only one product suffers an inventory change.

The problem is that if several products suffer changes at the same time, i get the " Exceeded 2 calls per second for api client. Reduce request rates to resume uninterrupted service”.

I tried using the sleep tool before each Shopify module, with a delay of 2 seconds. It did not work.

You have all relevant printscreens.

I am also sending the blueprint.

I coud not locate the Output Bundles of Modules so i am sending a csv file with the history of the senario.









blueprint.json (57.5 KB)
scenario-3853184-logs.csv (203.8 KB)

Since it’s an instant webhook trigger, it is also possible that multiple instances of the scenario is being called close enough that they run together, which means that your sleep modules aren’t good enough.

You might need to try turning on “Sequential processing” in your scenario settings on top of 2s Sleep modules before each Shopify module in your scenario.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.