Updating price on Shopify via API not working PHP and curl
<p>My products do not have any variants. I can update non-variant values but for some reason I cannot update price which is part of the one (seemingly required) variant.</p>

<pre><code> $data = array(
              'product' =&gt; array(
                                 'id' =&gt; $id,                                       
                                  'title' =&gt; $title,
                                  'body_html' =&gt; $description,                             
                                  'tags' =&gt; $tags,
                                   'variants' =&gt; array(array(
                                                       'id' =&gt; $variant_id,
                                                       'product_id' =&gt; $id,                                                      
                                                       'price' =&gt; $price))
                                      )   
                     );


        $url = "https://$api_key:$api_pass@example.myshopify.com/admin/products/$id.json";
        $curl = curl_init($url);
        curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT");
        curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
        curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
        $result = curl_exec ($curl);       
        curl_close($curl);

        $result = json_decode($result);
        print_r($result);
</code></pre>

<p>The title, body and tags update fine but the price does not. I compared against the raw product json and it seems fine. What am I doing wrong?</p>

<p>Thanks</p>