App reviews, troubleshooting, and recommendations
Hi u all guys!,
We developed a small App for our own shop and was working great since we implemented the last improvement to check orders and dome some calcs.
When we started to develop the app we used the last available API: April22.
Now each time we check for Orders I get this console output:
API Deprecation Notice: {
message: 'https://shopify.dev/changelog/property-deprecations-in-the-admin-api-order-and-lineitem-resource',
path: 'https://zmg-test-field1.myshopify.com/admin/api/2022-04/orders.json?limit=250&created_at_min=2022-09...'
}
So I tried to upgrade the App event version:
And also change the code inside the app to use the October22 version:
Shopify.Context.initialize({API_KEY,API_SECRET_KEY,SCOPES: [SCOPES],HOST_NAME: HOST.replace(/https?:\/\//, ""),HOST_SCHEME: HOST.split("://")[0],IS_EMBEDDED_APP: true,API_VERSION: ApiVersion.October22});
The problem: when we do this, we get this error:
RestResourceError: Current Context.API_VERSION '2022-10' does not match resource version 2022-04
at RestResourceError.ShopifyError [as constructor]
Anybody can help me with the part I'm not understanding or missing?
Thanks in advance 🙂
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025