0

I am using Magento version 1.12.0.2.

I am not able to update stock quantity using soap API. It is working fine for other products except one. I tried to update manually from admin and it worked fine but when trying to update from soap API, its not updating.

Please find the script below:

$proxy = new SoapClient('https://sueryder.wcltest.com/index.php/api/v2_soap/?wsdl');
$sessionId = $proxy->login('demo', 'demotest');
$result = $proxy->catalogInventoryStockItemUpdate($sessionId, 3711, array(
'qty' => '31',
'is_in_stock' => 1
));
var_dump($result);
halfer
  • 19,824
  • 17
  • 99
  • 186
Prince
  • 401
  • 1
  • 7
  • 34

1 Answers1

0

Use soap client- https://sueryder.wcltest.com/index.php/api/v2_soap/?wsdl=1 insteed of https://sueryder.wcltest.com/index.php/api/v2_soap/?wsdl.

Abhinav Kumar Singh
  • 2,325
  • 1
  • 10
  • 11
  • No, it didn't work for this particular product. Because the above code is updating other's product quantity but not to this product. Not even show any error it shows result like int(1) . also i can't see any log for this. – Prince May 09 '17 at 13:18