title: WooCommerce REST API - Retrieve Order Attributes (Size / Color)
body: <p>Using the <a href="https://github.com/kloon/WooCommerce-REST-API-Client-Library/blob/master/example/example.php" rel="nofollow">WooCommerce REST Client Library</a>, I can easily pull orders that are in processing, like so:</p>
  
  <pre><code>$response = $wc_api-&gt;get_orders( array( 'status' =&gt; 'processing' ) );
  </code></pre>
  
  <p>But the results do NOT include Attributes (color, size, etc.) even though the purchased product was setup with Size/Color attributes that correlate with product variations. That part all works just fine. The customer can select the size and color of a product, but that information does NOT show up with a <code>get_orders</code> query.</p>
  
  <p>Here's what does show up:</p>
  
  <pre><code>&lt;line_items&gt;
       &lt;XML_Serializer_Tag&gt;
           &lt;id&gt;18&lt;/id&gt;
           &lt;subtotal&gt;19.99&lt;/subtotal&gt;
           &lt;total&gt;19.99&lt;/total&gt;
           &lt;total_tax&gt;0.00&lt;/total_tax&gt;
           &lt;price&gt;19.99&lt;/price&gt;
           &lt;quantity&gt;1&lt;/quantity&gt;
           &lt;tax_class /&gt;
           &lt;name&gt;Cool T-Shirt You Just Bought!&lt;/name&gt;
           &lt;product_id&gt;351&lt;/product_id&gt;
           &lt;sku&gt;194953&lt;/sku&gt;
       &lt;/XML_Serializer_Tag&gt;
   &lt;/line_items&gt;
  </code></pre>
  
  <p>As you can see, even though the customer has selected "Large / Black" for the variations, it does not show up in the <code>get_orders</code> data.</p>
  
  <p>I can pull the available attributes for the <strong>product</strong> using the same library, but I need to pull the customer-selected attributes for the <strong>order</strong>.</p>