Why am I facing version upgrade issues with my app's API?

Why am I facing version upgrade issues with my app's API?

DaLZemag
Shopify Partner
1 0 0

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: 

DaLZemag_0-1666084543865.png

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 🙂 

 

Reply 1 (1)

TienNgo
Shopify Partner
15 0 9

Hi @DaLZemag, did you find any solutions about this?