Want to change products in-stock and out of stock status w.r.t reference brand website

Hi,

I have a store named sahaili, we are selling clothes but in our case, the scenario is that we don’t sell our items we have collaborated with 20+ clothing brands. When any brand launches their album then after sometimes we start listing those album products in our Shopify store. Now the issue is that every time a product gets out of stock on the reference brand we have to mark them manually out of stock in our store. Tell me some way I can automate this procedure so that this all happens automatically.

Thanks

How are you pulling those products from the brands into your site? Do you have api access of some kind to those brand sites?