Issue: Users are encountering a 404 “Not Found” error when attempting to cancel orders through Shopify’s REST Admin API, despite the orders being visible in both the dashboard and retrievable via the orders API.
Technical Details:
The REST API endpoint /admin/api/2024-07/orders/{order_id}/cancel.json returns {"errors":"Not Found"}
Code includes proper authentication headers (X-Shopify-Access-Token) and parameters (restock=true)
The same 404 error occurs with GraphQL API’s orderCancel mutation
Troubleshooting Attempted:
One user suggested testing with GraphQL API via the GraphiQL app as an alternative approach
Original poster confirmed all permission scopes are enabled and the app works otherwise, but order cancellation specifically fails regardless of API method used
Status: Unresolved. Multiple users report the identical issue across both REST and GraphQL APIs, suggesting a potential broader platform issue or permissions configuration problem beyond standard API access.
Summarized with AI on November 7.
AI used: claude-sonnet-4-5-20250929.
The problem is I can’t use the GraphQL API at all. All permission scopes are allowed, works like a charm on the app but wouldn’t work using the API no matter what I try. Please figure it out for me