GET /admin/api/2020-01/orders.json shows only latest order

Solved
Highlighted
Tourist
8 1 0

Dear Community-members,

 

we are developing a private app for retreiving orders for importing into our WMS. We tried using GET /admin/api/2020-01/orders.json as mentioned in the API documentation and it does generally work but unfortunately we receive not all orders back but only the latest (from today). Any idea why?

 

Rgds

Kurt  

 

0 Likes
Highlighted

This is an accepted solution.

Hi that´s because by default it shows open orders

if you want to show all orders or closed orders you have to filter by status.

/admin/api/2020-01/orders.json?status=closed

Software/Devops Engineer
at www.studiohildesia.com
0 Likes
Highlighted
Tourist
8 1 0

Hi, 

thank you very much, it works!

rgds

Kurt  

 

0 Likes