{"errors":"Not Found"} When cancelling the order through API

Topic summary

Issue: Cancelling orders via Shopify API returns “Not Found,” even though the orders exist in Shopify. Error details are shared as attached .txt files; a prior similar thread has no resolution.

Hypothesis: The failing orders are older than 60 days, and the app lacks the required access scope. One participant reports cancellations work for orders newer than 60 days but fail for older ones.

Technical note: The read_all_orders scope is needed to access and act on orders older than 60 days. Without this scope, the API may not locate older orders, leading to “Not Found.”

Action items: Verify whether affected orders are older than 60 days. Add or request the read_all_orders scope for the app and retest cancellation.

Status: Unresolved. The original poster will check if adding read_all_orders fixes the issue. Open question: Is order age and missing scope definitively the cause of the “Not Found” errors?

Summarized with AI on February 22. AI used: gpt-5.

Hello everybody,

We are a solution provider company and some of our customers are receiving error when trying to cancel an order on Shopify through API. The error simply states that the order cannot be found on Shopify (even though the order is actually present on Shopify and there is nothing wrong with it).

The errors are attached as txt files below.

There is a similar post here: https://community.shopify.com/c/shopify-apis-and-sdks/cannot-cancel-order-with-api-with-order-id/m-p/999747/highlight/false#M60499

But there is no resolution or response over there.

Thanks in advance!

Hello,

I’ve also encountered this problem.
My assumption is that the order that you want to cancel is older than 60 days.

I literally have the same issue and it just works for orders that are newer than 60 days.
Please check this assumption.

You might want to add the read_all_orders scope for your app to access orders that are older than 60 days.

Have a nice day!

1 Like

Thank you for the response!
We will check if this will help.