Rest API Create an Item and Update Inventory Levels

New Member
1 0 0

I am trying to create an item using the Rest API which I can successfully do. I was wondering how do I update inventory as well for that item. My issue is I am not sure of what my Item Id is as it gets created at run time and there is no way via the interface to see the ID's assigned to items unless you pull them through the API. How would I add an item via Rest and then update the inventory? 

Shopify Staff
Shopify Staff
1040 140 165

This is an accepted solution.

Hey @Akoehler,


This is a two step process:


1. Create the product, the response will contain variant ID(s).

2. Use the variant ID to update the inventory.

1 Like