title: How can orders be cancelled and refunded using the Shopify API?
body: <p>I have been trying to cancel and refund one of my orders using shopify API in php.
  When i send a curl request to Shopify API, its response is blank.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>&lt;?php
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, "https://3de0c1f89e936d4f52b29aXXXXXXX:8ae242d39b8fde6b0f8fe04fXXXXXXXX@ABC-XYZ.myshopify.com/admin/orders/145785434/cancel.json?amount=45.5");
  curl_setopt($ch, CURLOPT_HEADER, false); 
  curl_setopt($ch, CURLOPT_HTTPGET, true);
  
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
  curl_setopt($ch, CURLOPT_HTTPHEADER, array('Accept: application/json'));
  $response = curl_exec($ch);
  $result = json_decode($response);
  curl_close($ch);
  echo '&lt;pre&gt;';
  print_r($result);
  echo '&lt;/pre&gt;';
  ?&gt; 
  </code></pre>
  
  <p>what is that i am missing. Please help. Thanks in advance.</p>