I’m getting a persistent warning in my Partner Dashboard for a deprecated WebhookSubscription.privateMetafieldNamespaces endpoint, but I’ve searched my entire codebase and this endpoint isn’t being called anywhere.
Details:
Public app on Shopify App Store
Warning shows “last detected” daily
Thoroughly searched codebase - no references to privateMetafieldNamespaces
No third-party libraries making this call
Has anyone experienced deprecated API warnings? How did you track down the actual source?
Looking for debugging strategies or possible causes I might have missed.
Hey @RanaWaqar_Ahmad - if you’re open to sharing your app ID (should be the number that appears in the URL on the app page in your partner dashboard), I can take a look on our end here to see if we can track down the API call that’s triggering that warning - hope to hear from you soon!
Hey @RanaWaqar_Ahmad - thanks for sharing that info. I did some digging into our logs, and it looks like a webhook subscription was created by your app using API version 2023-07 (which would have been silently “updated” to API version 2024-10 which is the oldest currently supported API version at the moment).
I do know that by default, a webhook payload will show all fields, even if your app doesn’t use them directly in an API call, so this could be what is triggering the deprecation warning here. Could you upgrade your webhhook version to to 2025-01 or later in both your Partner dashboard and in your app’s .toml file (if you’re using our app libraries). In your partner dashboard, you’d find this by selecting your app and then heading to “Configuration”:
Hi.. @Alan_G Thanks for responding. I’ll go through these points and update the versions in both sides. Afterwards I’ll let you know if it still persists.
Hi. @Alan_G I have updated the version to 2025-01 but there is a problem I’m facing now is that I have registered to customers/update topic for the stores that installs the app. In previous version the payload I was getting on customer update topic includes tags field in it either its empty or has tags in a comma separated string but in the version 2025-01 the tags field is missing. So, the only possible way that’s coming to my mind right now is that I have to make a request to shopify admin api to fetch the related customer tags. Or there is any other way of getting them.
Hey @RanaWaqar_Ahmad - thanks for following up I definitely agree this is a little confusing, but hopefully I can help clarify things!
As of API version 2025-01, we removed the tags field from the webhook payloads for customer-related webhook subscriptions:
That said, there’s still definitely a way to get that information without having to make an API request. We created two new webhook topics (CUSTOMER_TAGS_ADDED and CUSTOMER_TAGS_REMOVED).
The webhook payload there should contain any newly added/removed tags, but that said, if you did need to retrieve any tags that were already present on the customer’s record and weren’t added/removed you would need to make an API call to the customer object:
Hope this helps a bit, let me know if I can clarify anything further on my end here, happy to help!