How to update “inventory_level” of product by sku id in Bigcommerce?

前端 未结 2 434
名媛妹妹
名媛妹妹 2021-01-01 03:20

I am trying to update the inventory level of a products but unfortunately not getting success.Here is my code. I want to update product\'s "inventory_level" but e

2条回答
  •  不知归路
    2021-01-01 03:49

    No need to download ALL products, why not retrieve JUST the product that has the sku you need?

    GET: /api/v2/products?sku=sku-that-I'm-interested-in
    

    parse the response for the id (that's the product ID for the product with that SKU)

    Then do a PUT using that product ID.

提交回复
热议问题