All api requests returns 404 error

Topic summary

Main issue: All REST Admin API calls using XML endpoints/payloads are failing with 404 (when expecting XML responses) and 415 (when sending XML payloads).

Cause: Shopify removed XML support starting with API version 2022-07. The last version that supported XML (2022-04) is expired and no longer served. Therefore, requests like /admin/api/2023-04/orders.xml return 404, and XML payloads return 415.

Evidence: Responses show X-Shopify-API-Version: 2023-04 (404) and 2022-07 (415), which aligns with the deprecation behavior documented in Shopify’s changelog and release notes.

Resolution: Migrate to JSON for both endpoints and payloads. Use endpoints such as /admin/api/2023-04/orders.json and ensure Content-Type/Accept headers are JSON. Refer to Shopify API versioning for ongoing compatibility.

Status: Resolved with clear guidance to switch to JSON. Store closing/re-opening is not indicated as a factor.

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

Hi @Sp1ke ,

Thanks for your post. XML support was removed as of REST Admin API version 2022-07 so the 404 and 415 errors are expected, and in order to continue using the API the application will need to be able to work with JSON and use the JSON endpoints.

So for example it would be /admin/api/2023-04/orders.json instead of /admin/api/2023-04/orders.xml.

Here’s the changelog announcement about that with a date of June 1, 2022:

https://shopify.dev/changelog/support-for-the-xml-response-format-is-deprecated-from-the-admin-rest-api

Support for the XML response format is deprecated from the Admin REST API> Starting in version 2022-07, support for the XML response format and XML payloads in the Admin REST API is removed. Requests expecting an XML response will result in a 404. Requests that send an XML payload will result in a 415.

It’s also mentioned in the 2022-07 release notes like this:

The REST Admin API no longer supports XML-format responses and payloads. If you’re using XML for REST Admin API requests and payloads, then you need to switch to using JSON format.

More info about Shopify API Versioning can be found here:

https://shopify.dev/docs/api/usage/versioning

The last version of the API with XML support was 2022-04 which is now expired and no longer being served.

Sincerely,
Jon551