title: How can I update inventory on Overstock.com using API
body: <p>I try to update inventory on supplieroasis.com using API. But I does not get update on <a href="https://edge.supplieroasis.com" rel="nofollow noreferrer">https://edge.supplieroasis.com</a> while api return success respnose.</p>
  
  <p>I also like to know how supplier oasis take inventory for "reserved", "sellable", "onHold", "totalQuantity".</p>
  
  <pre><code>$user_pass = "XXXXXXXXXX:XXXXXXXXXX";
  $header = array('Authorization: Basic '.base64_encode($user_pass),'Content-Type:application/xml');    
  date_default_timezone_set("America/Denver");
  $current_time  = mktime(date("H")-1, date("i"), date("s"), date("m")  , date("d"), date("Y"));
  $inventory_at=  date("c",$current_time);    
  $xml = &lt;&lt;&lt;EOD
  &lt;?xml version="1.0" encoding="UTF-8" standalone="yes"?&gt;
  &lt;supplierInventoryMessage xmlns="api.supplieroasis.com"&gt;
  &lt;supplierInventory&gt;
      &lt;partnerSku&gt;XXXXXXXXXXXXXXXXXXXX&lt;/partnerSku&gt;
      &lt;supplierWarehouseQuantity&gt;
          &lt;warehouseName&gt;
              &lt;code&gt;XXXXXXXXXXX&lt;/code&gt;
          &lt;/warehouseName&gt;
          &lt;quantity&gt;13&lt;/quantity&gt;
          &lt;timestamp&gt;$inventory_at&lt;/timestamp&gt;            
      &lt;/supplierWarehouseQuantity&gt;
  &lt;/supplierInventory&gt;    
  &lt;/supplierInventoryMessage&gt;
  EOD;
  $ch = curl_init();        
  $url = 'https://api.supplieroasis.com/inventory?jobName=';
  
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 120);
  curl_setopt($ch, CURLOPT_TIMEOUT,150);
  curl_setopt($ch, CURLOPT_CERTINFO, FALSE);
  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
  curl_setopt($ch,CURLOPT_POST, TRUE);
  curl_setopt($ch,CURLOPT_POSTFIELDS, $xml);
  $str = curl_exec($ch);
  if(!curl_errno($ch))
  {
      $info = curl_getinfo($ch);
  }
  else
  {
      echo 'Curl error: ' . curl_error($ch);
  }
  curl_close($ch);
  header("Content-Type:text/XML");
  print_r($str);
  </code></pre>