API version doesn't change on my private apps

Shopify Partner
6 0 0

I have access to 5 stores, with their relatives private apps.
I need to use the pagination feature to get the customers data in order to update said data on a newsletter service.

I updated the private app to the latest stable version (2019-10) and I gave it the right permissions.
But when I make the GET call to retrieve the customers, in the response header the version is still the same:

 

'x-shopify-api-version': [ '2019-04' ]

Also, the "Link" field is nowhere to be found inside the headers' response data.

This happens on every store I have access, no matter what version I set for the app, it remains always on 2019-04.

0 Likes
Shopify Partner
852 86 130

Would you share the exact API URL you are hitting to get the the Customers' list?

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes
Shopify Partner
6 0 0

The URL is:

https://MYSHOP.myshopify.com/admin/customers.json
0 Likes
Shopify Partner
852 86 130

As per the documentation -https://help.shopify.com/en/api/versioning, if you don't specify the API version explicitly in the URL, it will default to the oldest supported stable version, which currently is 2019-04.

 

Just add the version to the URL like this and you should be good:

/admin/api/2019-10/customers.json
Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes
Shopify Partner
6 0 0

Even if the private app's version is set to the latest?

0 Likes
Highlighted
Shopify Partner
852 86 130

Not sure to what setting you are referring, have a screen shot from the Admin page? I assume what you set was the Web Hook API version for the private app, which doesn't affect the API calls you actually make.

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes
Shopify Partner
6 0 0

Yes, It's the Web Hook API section.
I guess I got confused with the interfaces.

I'm sorry for the dumb question.

0 Likes
Shopify Partner
852 86 130

It is indeed confusing. No worries at all!

Sergiu Svinarciuc | CTO @ visely.io
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!
- To learn more about the awesome stuff we do head over to visely.io or our blog
0 Likes