I'm trying to develop some client library code that scans an endpoint. Since the dev using the client I'm writing could set their API version I wanted to add some backwards compatibility to switch between page= and since_id= pagination methods if versions were older. Was hoping to use X-Shopify-API-Version and I'm not even getting it as a response. Is there something I'm doing wrong to get this header? I'm just testing it in Chrome and perhaps a browser UA does not send this response? I expect I could call /admin/products.json and get the latest stable "2020-01" and /admin/api/2019-10/products.json would return "2019-10" but reality I'm seeing no x-header at all. Any pro-tips to get this header or perhaps the feature is just broken?
Solved! Go to the solution
This is an accepted solution.
Yup, something has to do with your browser. I can get the header for both your scenarios when trying through Postman or our backend.