title: Woocommerce REST API - filter orders by number or date
body: <p>I want to retrieve an order by its number (not order ID) or by a date. </p>
  
  <p>Earlier I've tried to retrieve (with Postman) an order by its <code>order_id</code>, <code>status</code> or <code>order_key</code> - and it worked:</p>
  
  <pre><code>https://example.com/wp-json/wc/v1/orders?status=completed&amp;consumer_key=ck_...&amp;consumer_secret=cs_...
  </code></pre>
  
  <p>With the example above, it works correctly. 
  However, when I'm trying to use <code>number</code>, all of the orders are listed:</p>
  
  <pre><code>https://example.com/wp-json/wc/v1/orders?number=123&amp;consumer_key=ck_...&amp;consumer_secret=cs_...
  </code></pre>
  
  <p>I've tried also <code>filter[number]</code>, the result is the same (all orders are listed):</p>
  
  <pre><code>https://example.com/wp-json/wc/v1/orders?filter[number]=123&amp;consumer_key=ck_...&amp;consumer_secret=cs_...
  </code></pre>
  
  <p><strong>Question:</strong> Could you please explain how can I get order by order number (or a date) using Woocommerce REST API? </p>