Hi Friends,
I have some simple python codes I use to retrieve order information, and it has worked like a charm for over a year. However, it stopped working over the last week with the error “shopify.api_version.VersionNotFoundError”.
This is odd since the API version in my code is the latest version and it has never failed. The code only works if I switch it back to 2020, but I am afraid that is no longer supported. Can someone please help guide on what I have to do? I only have basic programming abilities and I wasn’t able to find anything in the Shopify python github. Thank you!
shop_url = ‘XXXXXXXXXXXXXXXX.myshopify.com’
api_version = ‘2021-10’
private_app_password = ‘XXXXXXXXXXXXXXXX’
def get_track(order_id):
with shopify.Session.temp(shop_url, api_version, private_app_password):
order = shopify.Order.find(order_id)
pprint(vars(order))