Deprecated API Calls Made - API Health Dashboard

eShipperTech
Shopify Partner
13 0 1

Hi Team,

 

We recently started getting email and notification about, our app making deprecated calls for orders endpoint before 2022-10 Version. We updated our call for /orders endpoint to 2022-10 version and crossed checked all the API's call and make sure we are not making any more deprecated call.

 

Unfortunately, on our APIs health dashboard we are getting alert app still making deprecated API calls to version before 2022-10.

 

We requested partner support team to get us app client making deprecated API calls before 2022-10 Version. However, the report they are sharing don't show any deprecated API calls before 2022-10. 

 

The warning about "delisting and unsupported app" is stopping current / future app client to use app. Please some help us to know how we can remove the warning / alert.

 

https://prnt.sc/gNRkPvFFYlOg

 

https://prnt.sc/yEyPvjBBkvYT

 

 

Thanks,

eShipper team.

Replies 7 (7)
Tahar
Shopify Partner
27 2 2

Hi @eShipperTech,

I recommend you scan through all your source code to ensure you are not calling into a deprecated endpoint. I also recommend you check your app setup to make sure your webhooks are setup to use a non deprecated API version

Tahar_0-1690187954097.png

 

I hope this helps.

 

Tahar

 

eShipperTech
Shopify Partner
13 0 1

Hi Tahar,

 

Thanks for response. 

 

We scanned our source code and using 2022-10 version only. For webhook we also setup 2022-10.

 

Is there any way we can find out which app client making deprecated API calls and on which version. 

Kanika_Test_Adm_0-1690213677508.png

 

Regards,

eShipper team.

 

Tahar
Shopify Partner
27 2 2

There is likely a call somewhere in your stack using the old APIs. What we usually do is either instrument all our code calling out to Shopify (this should be fairly simple if the APIs have been abstracted away with one single component) or run our apps and services locally then have fiddler capture all the API calls we make to Shopify. That way we can easily identify which parts of our apps are making deprecated calls. 

 

I hope this helps.

 

/T

Bluex
Shopify Partner
3 0 0

It is possible that some client is using the token to consult deprecated APIS to Shopify and this also alerts API HEALTH, we have the same problem to date without a solution. Did you manage to solve?

eShipperTech
Shopify Partner
13 0 1

Thank you for responding Bluex.

We havent been able to resolve this yet, but we are not sharing the tokens with the clients. So we can easily rule out that point.

PersistentDev
Shopify Partner
7 0 1

I have the exact same problem.

 

The codebase has been completely rewritten from a custom solution to Shopify's SDK: https://github.com/Shopify/shopify-app-template-php

 

API version is set to Latest everywhere, and there are not too many calls to API from our app anyway, so I've douple-triple-quadruple checked everything - still with no success - the deprecation notice isn't going away. It's simply impossible for the app to make deprecated calls with the current codebase!

 

Email support wasn't much of a help for now. Can we at least get some more details of those calls our app is making, supposedly? I mean headers, payloads, etc. Or maybe hop on a call with tech support? Without it, it's simply impossible to figure this issue out!

PersistentDev
Shopify Partner
7 0 1

An update:

When I make the simplest request possible on the Orders endpoint, like this:

GET https://[SOME_STORE].myshopify.com/admin/api/2023-04/orders.json

Notice the API version - almost the latest one.

Or even with specifically asking only for the Order ID and nothing else, to exclude possible triggers of some deprecated fields, like this:

GET https://[SOME_STORE].myshopify.com/admin/api/2023-04/orders.json?fields=id

The response contains a X-Shopify-API-Deprecated-Reason header with the following value: https://shopify.dev/changelog/property-deprecations-in-the-admin-api-order-and-lineitem-resource

How is it even applicable to the simplest call possible? This definitely feels like a bug on Shopify's side.