Shopify api rest api

Solved
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

Success.

Shopify Staff
Shopify Staff
240 33 37

Hey @paramjeet,

 

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

1 Like
Highlighted
New Member
2 0 0

Thanks @scottydont , it's working now.

0 Likes