Hi,
I’m new to the Shopify API and am trying to collect the order information from my shop using python.
API_KEY = 'XXXXXXXXXX'
API_SECRET_KEY = 'ZZZZZZZ'
API_PASSWORD = 'YYYYYYY'
HOSTNAME = 'MYDOMAIN.myshopify.com'
VERSION = '2022-07'
RESOURCE = 'orders'
url = f'https://{API_KEY}:{API_PASSWORD}@{HOSTNAME}/admin/api/{VERSION}/{RESOURCE}.json'
r = requests.get(url)
print( r.json() )
This results in the output:
{'errors': 'Not Found'}
I have tried other endpoints such as ‘products.json’ as in this tutorial:
https://www.youtube.com/watch?v=CbsbunnH8Q0&t=387s&ab_channel=JohnWatsonRooney
I still get ‘Not found’ even though I copy his tutorial.
It is a private app, and I have given it all the permissions.
I suspect the call actually works but doesn’t connect to the shop for some reason…
Is there some way to test this?
Or do any of you have any ideas on how to solve this?
Thanks in advance