Trying to use the orders api endpoint to retrieve orders by order id but i am getting "Not Found". Verified that the endpoint is correct as it returns the order json in the browser. Key works as the
response is not auth related. Screenshot is attached. The X-Request-Id is 2219eb41-d130-47c3-b244-7398d853eced. Replaced order id and shop name with placeholders.
Solved! Go to the solution
Happy to help you out with this issue.
Looking at the logs the order being requested is outside of the 60-day window that is available to the read_orders scope. This Link talks more about orders permissions, including how to request read_all_orders scope if that's something you need.
Hope that helps.
This is an accepted solution.
Thanks for providing the request-id.
Looking at the logs, you're not specifying the api version in the request. I'm seeing /admin/api/orders/somenum.json instead of /admin/api/2020-10/orders/somenum.json. Without the version the REST endpoint will return a 404.
Hope that helps out.