title: Shopify API get Total Returns/Refunds
body: <p>I am trying to get the Net Sales of orders of our Shopify store on daily basis. I can do it with the <code>Orders API</code>, but there seems to be a mismatch for the <code>refunds</code> returned by the API and the refunds/returns that show up in the dashboard. <br>
  In fact, the API doesnt show any refunds for the orders at all but there does seem to be some amount deducted from the Total Sales of Orders which make the actual Net Sales for that particular day.</p>
  <p>I can retrieve the orders for one day by this example URL. I iterate through all the orders and add up each Order's amount which gives an exact number of Total Sales which match up to the number in the dashboard. But this Total Sales value doesnt take into account the refunds/returns. <br>
  <code>/admin/api/2021-07/orders.json?status=any&amp;created_at_min=2021-08-17T00:00:00-04:00&amp;created_at_max=2021-08-18T00:00:00-04:00&amp;limit=250</code></p>
  <p>There is a <code>refunds</code> in the returned json for each order as well in the above call but that is empty for all the objects.
  I have explicitly tried to retrieve the refunds as well by following API call but it also returns empty for all the orders.<br>
  <code>/admin/api/2021-07/orders/{order_id}/refunds.json</code></p>
  <p>You may have a look at the Dashboard Sales image for one day. Please note in this image, I can get the exact value for Total Orders from the API but can not retrieve a single refund/return for any of the order.</p>
  <p><a href="https://i.stack.imgur.com/m9rMB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m9rMB.png" alt="Shopify Dashboard One-day Sales Image" /></a></p>
  <p>Would you be having an idea what are these Refunds/Returns shown in the Dashboard? If so, is there a way how can I accurately calculate the Refunds/Returns by the API as well, so I can accurately calculate the Total Sales for one day?</p>