Answers.Body: <p>Orders are in fact an <code>ElementType</code> in Craft.</p>
  
  <p>See <code>Commerce_OrderElementType.php</code> inside the commerce plug-in folder. With that said you should have no problem retrieving orders like you would any other element type in Craft.</p>
  
  <p>There are also services available that make it very easy to retrieve orders so you may find a simple PHP plug-in will get the job done in terms of returning JSON for an order(s).</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-04-12T12:37:17.637Z
Answers.LastActivityDate: 2016-04-12T12:37:17.637Z
Answers.UserDisplayName: mcclaskiem
Body: <p>Background: We are considering using Craft Commerce to replace Shopify for more custom fields.
  However Craft Commerce does not have simple export buttons for exporting orders, so we are looking at the <a href="https://github.com/pixelandtonic/ElementAPI" rel="nofollow">Element API</a> plugin to build our custom plugin to get each order as a order-xxx.json</p>
  
  <p>Question: Can i use Craft Commerce orders as a element in the Element API plugin?</p>
  
Tags: <plugin-development><plugin-elementapi><plugin-craftcommerce>
Title: Can the Element API export Craft Commerce orders as the element?
ThreadText: # Can the Element API export Craft Commerce orders as the element?
  
  (Asked by: username_0 on 2016-04-12)
  
  Background: We are considering using Craft Commerce to replace Shopify for more custom fields.
  However Craft Commerce does not have simple export buttons for exporting orders, so we are looking at the [Element API](https://github.com/pixelandtonic/ElementAPI) plugin to build our custom plugin to get each order as a order-xxx.json
  
  Question: Can i use Craft Commerce orders as a element in the Element API plugin?
  
  **Tags:** plugin-development, plugin-elementapi, plugin-craftcommerce
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-04-12. Score: 2 | Accepted answer
  
  Orders are in fact an `ElementType` in Craft.
  
  See `Commerce_OrderElementType.php` inside the commerce plug-in folder. With that said you should have no problem retrieving orders like you would any other element type in Craft.
  
  There are also services available that make it very easy to retrieve orders so you may find a simple PHP plug-in will get the job done in terms of returning JSON for an order(s).
  
  
  ---
  
  