title: woocommerce get shipping cost from zone id
body: <p>I am working in woocommerce add order from API. I already added order by using <code>wc_create_order()</code> function. In that, I have added shipping address, billing address, and product details as well. But the problem is I want to add shpping cost as per shipping zone. </p>
  
  <p>Here is screenshot :</p>
  
  <p><a href="https://i.stack.imgur.com/LiCdI.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LiCdI.jpg" alt="enter image description here"></a></p>
  
  <p>However I found class with function called : <code>WC_Shipping_Zones::get_zones().</code> </p>
  
  <p>But it return unarranged (unmanaged) array.
   I have <strong>state code</strong> and then I want to get shipping cost from state code. </p>
  
  <p>However, I have found <strong>zone_id</strong>.
   I have already tried to use <code>WC_Shipping_Zones::get_zone_by('zone_id',$zone_id),WC_Shipping_Zones::get_zone($zone_id);</code> </p>
  
  <p>But none of functions return <strong><em>cost</em></strong> anyhow.</p>