fulfilio / python-magento

Python API to access magento API
BSD 3-Clause "New" or "Revised" License
47 stars 61 forks source link

Stock #18

Closed grands-robson closed 5 years ago

grands-robson commented 5 years ago

Hi,

How to update inventory? I'm having this error:

AttributeError: 'API' object has no attribute 'product_stock'

client.product_stock.update()

grands-robson commented 5 years ago

I was able to use API.product.update ()

Data: {"stock_data": {"manage_stock": 1, "qty": 84}}

Thank you