404 Not Found response when accessing /orders/{id}.json REST API endpoint

404 Not Found response when accessing /orders/{id}.json REST API endpoint

ucfKingdom
Shopify Partner
5 0 1

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.

Reply 1 (1)

SomeUsernameHe
Shopify Partner
495 54 99

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


Have I helped? Consider putting coffee in my mouth!
Buy Me a Coffee