I help manage a store's analytics and created a quick private app to tap into the orders.json API endpoint. I'm seeing two odd behaviors though.
1) i can only pull back about a week (11 orders are coming through)
2) the orders don't align with the export feature when i sign into the store's dashboard. only 1 order matched up between the two methods and there were several missing from each side (API vs Export)
Any reason why this would be the case?
Hope this helps!
Thank you so much Karl!! it was the status=any issue. i didn't declare status at all and so it was only providing "open" orders...This should probably be documented next to the "Retrieve all orders" example. See below:
Retrieve all orders
Should probably be:
Retrieve all OPEN orders
* set status=any to retrieve ALL orders.
The parameters you can include during requests, as well as the different options and their defaults, are listed on that doc page.
You can usually find them at the top of of each endpoint's section.