Hi all,
We are going to use the Rest API to retrieve our order info and save them to our in-house system. I try to create a Private App to do so. The problem is no matter Postman nor Python can only retrieve an empty JSON. Be I can retrieve the orders from the browser (orders.json). One of the test orders was made today. It definitely is within 60 days. I try to put the parameter status=any still can’t help. Can anyone teach me how can it be worked on Postman or Python?
Thanks in advance
Postman with empty result.
Browser result.
Python Code:
import requests
shop_url = ‘https://xxxxxxxxxxxxxxxxxxxxx:shppa_xxxxxxxxxxxxxxxxxxxxxxxxx@dev-test.myshopify.com/admin/api/2021-10/orders.json?status=any’
def chk_orders():
r = requests.get(shop_url)
print(r.json())
return
chk_orders()
Result:
{‘orders’: }

