How to develop app for sync the inventory with Other Logistic SaaS

Hello,

I’m newbie to Shopify Development. We have a web application for helping our customer’s logistic.

I have a question that we have an Inventory database outside Shopify. It is located at our data server. We has REST API for data.

How could we push the inventory data to Customers’ store inventory? and without the shopify UI operation?

I see many Drop Shipping like Spocket can do that. They will auto sync their product list to store.

How could we do that? Can share idea and use which method is good?

Scheduled update synchronization or manual update.

The App installed by the store pulls the data from the data server and updates it every 5 minutes, or the store updates it manually.

HI @kk4sparkle

You can use product related APIs, with the following specific approach:

  1. Assuming there is an association (id to id) between the products in your database and those in Shopify, you can query the product data based on the id and inventory_item_id based on the product ID. This way, you can set the inventory data for that product
  2. Assuming that there is currently no association between the products in your database and those in Shopify, you can use handle as the basis for association. Shopify provides the API (productByHandle), so the subsequent logic is the same as the first scenario.

The basic idea is that if you have any more detailed questions during the development process, you can ask me again.

Thank you much. productByHandle is good idea. I will test it.