orders.json returning {"orders":[]}, no errors

benholmen-tbh
Shopify Partner
6 0 3

Hello,

 

In the last couple of days my app stopped importing new orders from the Shopify API. When I manually run an API request here's the response I receive:

 

GET .../admin/api/2020-01/orders.json?status=any&limit=20
{"orders":[]}

I've tried a variety of parameters (status=any, updated_at_min=..., since_id=n, limit=n, etc) but the outcome is the same. I've also tried 2019-04, 2019-10, and 2020-01 API versions.

 

Other endpoints work as expected: shop.json, products.json, orders/count.json.

GET .../admin/api/2020-01/orders/count.json?status=any&updated_at_min=2020-03-01T02:00:00+01:00
{"count":125}

My access_scopes include read_orders: 

read_products,read_product_listings,read_orders,unauthenticated_read_product_listings,unauthenticated_write_checkouts,unauthenticated_write_customers

How can I troubleshoot this issue further? Am I missing something simple?

Replies 3 (3)

NolanM
Shopify Partner
18 0 12

NolanM
Shopify Partner
18 0 12

Are you able to get the order transactions?

 

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

 

benholmen-tbh
Shopify Partner
6 0 3

Are you able to get the order transactions?

Yes, I can. Looks normal.

 

I haven't needed this in my application before but out of curiosity I did try the specific order endpoint and got a Not Found error for a valid order ID that is from 7 days ago:

GET /admin/api/2020-01/orders/21......29.json
{"errors":"Not Found"}

However if I try to get the transactions from the same order ID it works as expected:

GET /admin/api/2020-01/orders/21......29/transactions.json
{"transactions":[{ ......lots of valid json with confidential info .... credit_card_company":"Mastercard"}}]}

 

For any Shopify admins monitoring this thread, here are the x-request-ids for a few relevant requests:

41674bba-53b0-47cf-b762-fa7ae00ff349

5052f52c-937c-4df1-b2d2-78cf80a030d0

1468ce03-37ad-4c93-9ccf-01d29c577149