I am getting header X-Shopify-API-Deprecated-Reason with value -https://developers.shopify.com/changelog/wip-metafields-value-type-migration-guide on hitting the api
<shop>.myshopify.com/admin/api/2020-10/metafields to get the shop metafields.
This looks like a valid endpoint from the documentation here : https://shopify.dev/api/admin/rest/reference/metafield#index-2020-10
Can someone please tell me what could be wrong here?
Solved! Go to the solution
This is an accepted solution.
OK i figured it out.
In the new version 2021-07, value_type as been replaced with type.
So the depreciation header error you are getting is just informing you that the field 'value_type' will not exist in versions 2021-07 and future versions.
In case your app is using that value_type field and you are switching to 2021-07 version, you have to do the changes in your app to use the correct field.