Skip to content

Shopify API version deprecations, found in your code.

Shopify releases a new Admin API version every quarter and supports each one for at least 12 months.

When a pinned version leaves support, Shopify answers with the oldest supported version instead, so the data your app reads can change without a deploy. GitGo finds every place your code pins a version and calls the API.

Real output

Every client, every pinned version, every call.

GitGo CLI output for a small app with TypeScript and Python files. Version pins are what a quarterly upgrade has to move.

gitgo usages
$ gitgo usages ./app
graphql.ts:4:16   shopify client_init createAdminApiClient
graphql.ts:4:86   shopify version_pin 2024-04
graphql.ts:8:26   shopify call        request
graphql.ts:13:19  shopify client_init shopify.clients.Graphql
products.py:3:49  shopify version_pin 2024-01
products.py:8:12  shopify call        Product.find GET /admin/api/{api_version}/products.json
products.py:16:12 shopify call        Order.find GET /admin/api/{api_version}/orders.json
rest.ts:6:66      shopify version_pin 2024-01
rest.ts:7:22      shopify call        get GET /admin/api/{api_version}/products.json
rest.ts:8:9       shopify call        put PUT /admin/api/{api_version}/products/{id}.json
22 API usages in 5 files; 5 files scanned, 0 skipped
Real GitGo CLI output, 10 of 22 usages shown.

What GitGo checks for Shopify.

  • Admin REST calls in TypeScript and Python
  • GraphQL client calls from @shopify/admin-api-client, @shopify/shopify-api, @shopify/shopify-app-remix and the Python GraphQL class
  • The API version each client pins, so none is missed in an upgrade
  • Breaking changes between two REST OpenAPI descriptions or two GraphQL Admin schemas that you supply

Upgrade checklist

  1. Run gitgo usages to list every client and the version it pins.
  2. Move each pin to the same new version.
  3. Run gitgo scan with the two versions you supply: OpenAPI descriptions for REST, Admin schemas for GraphQL.
  4. Fix each breaking line, then deploy before the old version leaves support.

Shopify questions.

How often does Shopify change its API version?

Shopify releases a new Admin API version every quarter, named by year and month, for example 2024-01 and 2024-04. Each stable version is supported for at least 12 months.

What happens when my Shopify API version is no longer supported?

Shopify serves the request with the oldest supported version instead. Fields and behaviour from that version apply, even though your code did not change.

Does GitGo diff Shopify's GraphQL schema?

Yes. GitGo compares GraphQL schemas, as SDL or introspection JSON, including Shopify's Admin schema, and reports each call a change affects. It also finds the API version each client pins.

Upgrade the API version you have been putting off.

Run the CLI against your code, or connect a repository and let GitGo watch it.