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.

0 Likes
SBD_
Shopify Staff
Shopify Staff
1065 143 186

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

paramjeet
New Member
2 0 0

Thanks @SBD_ , it's working now.

0 Likes
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. 

0 Likes