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

前端 未结 2 431
名媛妹妹
名媛妹妹 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:33

    I am trying to do the same thing (different programming language). I have a call into their support. It seems like you still must reference the product_id.

    You cannot update simply by SKU. You must know the product_id. I got around this by requesting all products and loading the response into an array (product_id, sku, etc.). I then read thru the array, get the quantity from our system using the SKU, and post (PUT) the inventory_level using the associated product_id.

    IMHO this is a huge oversight on their part. Who cares what the product_id is on the website?

    I have asked for an enhancement that allows updating by SKU.

提交回复
热议问题