Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Orders API returns just one order

Orders API returns just one order

SingingStork
Tourist
3 0 2

I'm using the orders API to retrieve all orders 

GET /admin/api/2020-01/orders.json 

 But am just returning one result  and not my entire list of orders. 

 

Is there something I'm doing wrong? 

Replies 5 (5)

angeloghiotto
Shopify Partner
36 4 8

Hello,

 

I can help you, first of all, do you actually have more than one order, right? xD

 

Any details more?

How you are doing this request, via postman?

Could you post here how are you doing the request so i can replicate here?

SingingStork
Tourist
3 0 2
yes we have around 20 orders.

I'm doing a GET request using my api key and pw

@the-singing-stork.myshopify.com/admin/api/2020-01/orders/count.json

into a tool called parabola.
angeloghiotto
Shopify Partner
36 4 8

Well  "/admin/api/2020-01/orders/count.json" is just for counting the number of orders,

 

I tried just that route, it works fine in counting my orders, and i also tried "/admin/api/2020-01/orders.json" that flawlessly bring back the 50 default last orders.

 

You should try postman, i do not know about that tool you're using, give postman a try: https://www.getpostman.com/

SingingStork
Tourist
3 0 2

I figured it out - I had to add ?status=any to the end of the request and that pulled it all in. Oddly it only seems to pull unfulfilled as standard

 

jpbertram
Explorer
40 0 80

Hey @SingingStork!

I hope that you've given our new native Shopify integration a try. Should make things far easier for you than trying to navigate Shopify's APIs.

JP