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 / products endpoint. We updated our call to /orders and /products endpoint and started using cursor-based pagination on 2020-04 version.

We 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:

The page filter has been removed from all endpoints. Use cursor-based pagination instead. View change

Order (REST API)

Order

Admin  REST
Jun 25, 2020 at 01:13 PM

 

I checked the response header on given timestamp and got reason:

"x-shopify-api-deprecated-reason":"https:\/\/help.shopify.com\/api\/guides\/inventory-migration-guide"

Can anyone help, where and what we are missing on this. We will really thankful to you.

 

Regards,

eShipper team

Replies 12 (12)
BizDevStore_Adm
Shopify Partner
15 0 1

Have you find any solution on this ??

eShipperTech
Shopify Partner
13 0 1

Hi BizDev,

So far, we are not getting deprecated message on header response. However, on API Health Dashboard we are still getting Deprecated call.

If you find any solution, please share.

 

Regards,

eShipper team.

BizDevStore_Adm
Shopify Partner
15 0 1

Hello Kanika_Test_Adm,
 

 

eShipperTech
Shopify Partner
13 0 1

Hi,

I reached out to Shopify support team and logged ticket for the same. No response yet from Shopify.

Did you try checking response header.  You can get some clue from response header too. A month ago, i was getting deprecated reason on response header and I fixed the same. I hope this can also be help.

 

Regards,

SK eShipper team.

 

BizDevStore_Adm
Shopify Partner
15 0 1

Hello Kanika_Test_Adm

Yes we have tried to figure out the reason by x-shopify-api-deprecated-reason response header parameter. This parameter is not available in response header.

 

eShipperTech
Shopify Partner
13 0 1

Hi 

Regards,

SK eShipper team

 

v_orujov
Shopify Partner
5 0 0

Hi @eShipperTech ,

Did you find any solution?

eShipperTech
Shopify Partner
13 0 1
We reached out to Shopify to understand the problem. Just check are you calling the endpoint outside of you project like Swagger / Postman.
v_orujov
Shopify Partner
5 0 0

I've also reached to Shopify, waiting for reply from them. We use postman, but there should not be any use of deprecated call in there too. I'll check again. Thanks for suggestion.

Appifiny
Shopify Partner
161 2 34

Have you updated the app settings to use a more recent version of the API in the app settings?

I know it's labeled as event subscriptions but we were getting the same error until it was updated.

Screenshot 2020-07-15 at 18.48.21.png

I hope this helps?

Asa @ Appifiny

Try the best recent order app for Shopify free for 7 days: https://apps.shopify.com/recently
v_orujov
Shopify Partner
5 0 0

Hey @Appifiny ,

Thanks for response. Yes, I've actually updated event subscription version long time ago. It looks like the issue is not related to webhooks, but cursor based pagination. The weird part is that, we've implemented cursor pagination for a very long time ago. Since then we've never got any warning or issue. Suddenly it started to display red api health alert in partner dashboard.

Appifiny
Shopify Partner
161 2 34

Hey,

We updated all our pagination code a few months back but we still continued to get warnings about the pagination in the health dashboard.

I know webhooks are not related to the pagination but as soon as we updated the API version to July 2020 in the event subscription setting, it fixed the warnings in the health dashboard the next day.

Also make sure your API calls are using the same version.

Asa @ Appifiny

Try the best recent order app for Shopify free for 7 days: https://apps.shopify.com/recently