Orders.json api return data:null

Solved
elachino
Tourist
5 1 0

We try to call this api

 

myshopify.com//admin/api/2019-04/orders.json?page=1&status=any&financial_status=authorized,paid,partially_refunded,refunded,voided&limit=50&updated_at_min=2019-06-11T08:26:55-05:00

 from my app, if i call in a shop this works and returns order json, but in some stores i receive this response: 

 

{"error":false,"msg":"Richiesta eseguita con successo","data":null,"api_version":"","deprecated_reason":""}

 

If i do the same call whit same data from postman i receive all, before this call in this app i do also 

 

orders/count.json?&status=any&financial_status=authorized,paid,partially_refunded,refunded,voided

and it returns

 

{"error":false,"msg":"Richiesta eseguita con successo","data":{"count":11},"api_version":"2019-04","deprecated_reason":""}

 

I tried also in a shop without orders, to check if when i do it in a shop with no order the response is with data: null but i received

 

{"error":false,"msg":"Richiesta eseguita con successo","data":{"orders":[]},"api_version":"2019-04","deprecated_reason":""}

So why have i "data":null in my response?

Accepted Solution (1)
elachino
Tourist
5 1 0

This is an accepted solution.

If i remove "&updated_at_min=2019-06-11T08:26:55-05:00" from query params, the call worked.

 

View solution in original post

Reply 1 (1)
elachino
Tourist
5 1 0

This is an accepted solution.

If i remove "&updated_at_min=2019-06-11T08:26:55-05:00" from query params, the call worked.