Hi, can you please tell me how did you acheive this via api?
Topic summary
Goal: change a product’s inventory quantity via API using the Shopify Python SDK.
Key guidance provided:
- Use the Shopify Admin API inventory resources (docs linked). Inventory is tracked on InventoryItem and InventoryLevel, tied to a Location per product variant.
- Workflow suggested: after creating/saving the product and variants, get variant.inventory_item_id and call InventoryLevel.set with inventory_item_id and location_id to set the quantity for that location. The responder wasn’t certain about Python SDK specifics but pointed to the REST docs and examples.
Notable clarifications:
- “Location” refers to the fulfillment/stock location; understanding this enabled the original poster to manage inventory successfully.
Code context:
- A Python snippet showed product creation; the inventory snippet was partial. The linked docs are central for implementation details.
Current status:
- The original poster confirmed they solved it but did not share code.
- Follow-up questions asking how they achieved it, whether any libraries are required, and where to write the code remain unanswered. The thread is partially unresolved.