Creating Products with cost and location

Solved

Creating Products with cost and location

Rotciv
Shopify Partner
1 0 0

Hello! So I'm trying to publish a Shopify App to integrate with my company application, which its only feature basicaly is creating products to the user's store (using the Shopify REST API, passing the product's title, body_html, variants, etc). Recently, during the app review, the reviewer told me that I should also add the cost and the location of that product (as shown here in this screencast. But I can't find how to add it with the request, according to the official documentation. Is there any property that I can pass to add a product with a cost and location?


My application is using Ruby and the shopify_api gem (version 9.5) to simplify the requests.

Thank you,
Victor

Accepted Solution (1)

SBD_
Shopify Staff
1831 273 419

This is an accepted solution.

Hey @Rotciv 

 

This can be achieved with the GraphQL API. See the inventoryItem field.

Scott | Developer Advocate @ Shopify 

View solution in original post

Reply 1 (1)

SBD_
Shopify Staff
1831 273 419

This is an accepted solution.

Hey @Rotciv 

 

This can be achieved with the GraphQL API. See the inventoryItem field.

Scott | Developer Advocate @ Shopify