Discussing APIs and development related to customers, discounts, and order management.
I'm trying to access the details of an order via the REST API endpoint. I'm receiving a "Not Found" (404) but the order does exist. From the shopify Admin UI I can add ".json" to the url from the order that is currently being displayed. Using this method the order json is displayed. This is causing a problem because I have an integration that retrieves the order via the REST API. The only thing I determine about the order is that the line item is for a product that no longer exists.
Hoping someone has seen this before.
Thank you.
The 404 error isn't about not being able to find the order but has to do with the API not being able to find the endpoint. Check the URL of your API call to make sure it is correct: https://(YOURSTORE).myshopify.com/admin/api/2021-04/orders.json