M2.3.6, v1.2.2: Cannot update configurable products via Rest API

Created by Esther Nguyen, Modified on Thu, 2 Jan at 10:21 AM by Esther Nguyen

ISSUE:


After installing BSS Inventory Report, we cannot update configurable products via Rest API.


This is the API endpoint we use:


rest/V1/products/{sku}


Method: PUT


And we get this error:


    "message": "Can't check requested quantity for products without Source Items support.",


After disabling the module, this API works fine without any error.


SOLUTION:


Our module is getting product saleable qty directly but configurable product type cannot be obtained like that. In default Magento, it will get by item so you won't get this error.


To resolve the issue, please edit the file app/code/Bss/InventoryReport/Model/MultiInventorySource/StockAndSourceProcessor.php as below: 



If you need any further assistance, please feel free to contact us. We'd be happy to support you!

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article