Shopify api rest api

Solved
paramjeet
New Member
2 0 0

Hi, i am trying to update product price via shopify api but it does not change the price.
Api endpoint - PUT /admin/api/2019-10/products/#{product_id}.json

 

{ "product": { "id": 632910392, "variants": [ { "id": 808950810, "price": "2000.00", "sku": "Updating the Product SKU" }, ] } }

Can anyone help me out please.

Accepted Solution (1)

Accepted Solutions
SBD_
Shopify Staff
Shopify Staff
1098 146 219

This is an accepted solution.

Hey @paramjeet,

 

You'll need to update the product variant instead: https://help.shopify.com/en/api/reference/products/product-variant

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

View solution in original post

Replies 4 (4)
SBD_
Shopify Staff
Shopify Staff
1098 146 219

This is an accepted solution.

Hey @paramjeet,

 

You'll need to update the product variant instead: https://help.shopify.com/en/api/reference/products/product-variant

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

paramjeet
New Member
2 0 0

Thanks @SBD_ , it's working now.

API_user
New Member
1 0 0

API2Cart is a great solution that can help you develop Shopify API integration and avoid all the issues related to the Shopify API. 

zeshan28
New Member
2 0 0

hi I also wanted to update the price of the product but its wont working can you please help me out with this 

I am using the put api with the variant id and price