Order.XML API returns 404 found

Hello,

We are in to transport business and our customers integrate their shopify to our systems. Noticed that now order.xml api return 404 not found. could you please help on this very urgently.

eg: https://xxxxxx.myshopify.com/admin/orders.xml?.

Now we have created the new app & given permission…

but the https://xxxxx.myshopify.com/admin/orders.json working.

Is there any change/issue in orders.xml API?

Hi Spidertest123,

You’re likely seeing this error as the Admin API no longer supports XML-format responses and payloads - we deprecated this last year (see this changelog post). If you’re using XML for REST Admin API requests and payloads, then you’ll need to switch to using JSON format.

Your client application will need to parse JSON instead of XML. For most programming languages, this should be fairly straightforward as JSON parsers are usually included in their standard libraries or are easily available as third-party libraries.

Hope this helps Spidertest123 - let me know if you have any other questions on this.

Hi @spidertest123 ,

Please try with this url, as I am getting the result.

https://admin.shopify.com/store/your-storeName/orders.xml?

And if you want you can try this API for orders.json

https://access-keys@your-storeName.myshopify.com/admin/api/2023-04/orders.json

Refer screenshot

Thanks…

Yep just ran into the same thing. Pretty annoying but I had to migrate our project over to order.json endpoint.

Correct - the recent version change last week removed access for XML which was planned for deprecation since June 2022, so the way to fix this is to migrate to using the order.json endpoint.