LinnSystems / LinnworksNetSDK

Linnworks.net Developers
26 stars 41 forks source link

Update Product Inventory using Product SKU #18

Open demotesting54123 opened 6 years ago

demotesting54123 commented 6 years ago

I want to update product inventory using product SKU for that I call below API

  1. InventoryMethods::GetStockLocations($ApiToken, $ApiServer);
    • To get StockLocationId
  2. Then I Call StockMethods::GetStockItems('TEST_SS7050',$GetStockLocation->StockLocationId,1,1,true, true, true,$ApiToken, $ApiServer); API
    • To get StockItemId
  3. Then I Call InventoryMethods::UpdateInventoryItemStockField($stockItem->StockItemId,'Available','50',$GetStockLocation->StockLocationId,null, $ApiToken, $ApiServer);

    • To Update product Inventory. I got below response stdClass Object ( [Code] => - [Message] => Parameter '{0}' has invalid value ) Please correct me If I follow the wrong flow. Please inform me if there is any other way to update product inventory using the product SKU. Please guide me in pass parameters in a function.

2018_07_28_inventory_update

Thank You.