title: Shopify API getting order by name or order_number
body: <p>Im using a plugin for <strong>CakePHP</strong> to make the calls to obtain certain orders. I can call all orders with certain fields, but I was wondering how would I have to make the call to get the orders with a certain name or order_number? Here is the source for the call to <strong>Shopify</strong>. Its already authenticated and everything:</p>
  
  <pre><code>public function call($method, $path, $params=array())
      {
          if (!$this-&gt;isAuthorized())
              return;
          $password = $this-&gt;is_private_app ? $this-&gt;secret : md5($this-&gt;secret.$this-&gt;ShopifyAuth-&gt;token);
          $baseurl = "https://{$this-&gt;api_key}:$password@{$this-&gt;ShopifyAuth-&gt;shop_domain}/";
  
          $url = $baseurl.ltrim($path, '/');
          $query = in_array($method, array('GET','DELETE')) ? $params : array();
          $payload = in_array($method, array('POST','PUT')) ? stripslashes(json_encode($params)) : array();
      $request_headers = in_array($method, array('POST','PUT')) ? array("Content-Type: application/json; charset=utf-8", 'Expect:') : array();
      $request_headers[] = 'X-Shopify-Access-Token: ' . $this-&gt;ShopifyAuth-&gt;token;
          list($response_body, $response_headers) = $this-&gt;Curl-&gt;HttpRequest($method, $url, $query, $payload, $request_headers);
      $this-&gt;last_response_headers = $response_headers;
      $response = json_decode($response_body, true);
  
          if (isset($response['errors']) or ($this-&gt;last_response_headers['http_status_code'] &gt;= 400))
              throw new ShopifyApiException($method, $path, $params, $this-&gt;last_response_headers, $response);
  
          return (is_array($response) and (count($response) &gt; 0)) ? array_shift($response) : $response;
      }
  
      private function shopApiCallLimitParam($index)
      {
          if ($this-&gt;last_response_headers == null)
          {
              return 0;
          }
          $params = explode('/', $this-&gt;last_response_headers['http_x_shopify_shop_api_call_limit']);
          return (int) $params[$index];
      }
  </code></pre>
  
  <p>...and the code that makes the <code>GET</code> call:</p>
  
  <pre><code>// I only want the id and title of the collections
              $fields = "fields=name,id,status,financial_status,fulfillment_status,billing_address,customer";
              // get list of collections
              $custom_collections = $this-&gt;ShopifyAPI-&gt;call('GET', "/admin/orders.json", $fields);
              $this-&gt;set('collections', $custom_collections);
  </code></pre>
  
  <p>I think I'm missing the place where I can put the conditions for the call to get certain orders. I've already read the API documentation but can't seem to get the answer. </p>
  
  <p>I've tried putting the <code>?name=%231001</code> on the url after <code>.json</code> to try and get the order <strong>#1001</strong>, but it brings back a empty array.</p>
  
  <p>Then I tried <strong>?order_number=1001</strong> but it brings me every order with as well 1001 D: This is really confusing, Could anyone help me? </p>
  
  <p>Thanks in advance.</p>