PUT /admin/api/2021-07/products/4356364009530.json

PUT /admin/api/2021-07/products/4356364009530.json

wangchaocod
Visitor
1 0 0

In PUT/admin/products / 4356364009530 json, after I get 200 - OK.Title and weight (g) are well updated, but stock quantity is not.This is the same for all other calls: I can update every field except the inventory number.Any ideas?

{
  "product": {
    "id": 4356364009530,
    "variants": [
      {
        "id": 39415843749946,
        "price": "1.10",
        "inventory-management": "shopify",
        "inventory_quantity": 78
      },
      {
        "id": 39415843782714,
        "price": "1.10",
        "inventory-management": "shopify",
        "inventory_quantity": 32
      }
      
    ]
  }
}
Reply 1 (1)

Luke_K
Shopify Staff
402 66 102

Hey @wangchaocod 

If you wanted to update the Inventory Levels, I'd recommend making use of the Inventory Level Endpoint. Feel free to have a look the documentation here. Hope that helps!

| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!