How do I add location and inventory in product while I create a product in shopify using Api?

Q_2
Shopify Partner
32 0 5

Currently I'm adding a product in shopify using both way of api one is using rest api and second is using graphql api but 

my private app created in partner use old version so  shopify gives warning now to use latest version.

 

As you can see : https://prnt.sc/shcw8p

 

So now How can I add location and Inventory in added product?

Is there any api to add inventory at specified location during create product?

Please help.

 

Reply 1 (1)
SBD_
Shopify Staff
Shopify Staff
1098 146 229

Hey @Q_2 

 

Here's a tutorial: https://shopify.dev/tutorials/manage-product-inventory-with-admin-api

Scott | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog