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.

Order API returning wrong/partial data

Order API returning wrong/partial data

Sebringcreative
Visitor
1 0 0

While I'm filtering order by its fulfillment status "unfulfilled" from the admin panel it's showing around 2300+ orders which is correct.

But when I'm making API call from c# application for the same thing it is returning only 1st page (250 orders) and when I query for the second page it isn't returning any orders.

Admin URL: https://xterrawetsuits.myshopify.com/admin/orders?fulfillment_status=unfulfilled&status=any&limit=25...

API URL: https://xterrawetsuits.myshopify.com/admin/orders.json?fulfillment_status=unfulfilled&status=any&lim...

 

Is there anything missing in the API call url or Shopify is having faulty API?

Replies 2 (2)

DiscountNinja
Shopify Partner
104 0 67

I don't see the page in the API Url. Are you passing it?

Cf. https://help.shopify.com/en/api/reference/orders/order#endpoints

Bart Coppens | Limoni Apps | Building apps for Shopify since 2016

Jason
Shopify Partner
11206 226 2317

It would make sense that the Admin can view all orders.
Are you sure the note below (from the orders api page) not the result you're seeing?

As of June 6th, 2018, only the last 60 days' worth of orders from a store will be accessible from the Order resource by default. If you want to access older orders, then you need to request access to all orders. If your app is granted access, then you can add the read_all_orders scope to your app along with read_orders or write_orders.

★ I jump on these forums in my free time to help and share some insights. Not looking to be hired, and not looking for work. http://freakdesign.com.au ★