REST API for orders using ids= only pulls last order placed

kurtpindroh
Shopify Partner
3 0 0

Using the ids= filter with the REST API for orders appears to be working only for the last order placed. For example, this works:

/admin/api/2020-01/orders/2017876967502.json?fields=order_number,id

But this doesn't:

/admin/api/2020-01/orders.json?ids=2017876967502&fields=order_number,id

But it does work if order id 2017876967502 was the last order placed.

I'm pretty sure this has worked until fairly recently.

0 Likes
kurtpindroh
Shopify Partner
3 0 0

Resolved: The orders API defaults to status=open, adding status=any fixed it.

0 Likes
msk
Excursionist
28 5 3

Hello,

you have wrong one.

please use this URL format

https://spyra-one-the-water-gun.myshopify.com/admin/api/2020-01/orders/[ORDER_ID].json?fields=order_number,id

Thanks

0 Likes