← All posts

Salesforce API version retirement: ready for Summer ’28?

Salesforce API versions 31 to 40 retire in Summer ’28. How to find integrations and Apex on old versions and upgrade them safely.

By Ali Ajmal, Salesforce consultant at Modeverse · November 30, 2026 · 3 min read

Salesforce API version retirement: ready for Summer ’28?

Salesforce API versions 31.0 to 40.0 are deprecated and unsupported from Summer ’27 and retired from Summer ’28. After retirement, calls on those versions fail, so any integration, script or tool still using them stops working. Find them now using Salesforce's API usage logs, move them to a current version, and upgrade old Apex while you are there.

Which Salesforce API versions are retired?

Salesforce supports each API version for at least three years and gives at least a year's notice before retiring one. The current picture:

  • Versions 7.0 to 20.0: retired in Summer ’22.
  • Versions 21.0 to 30.0: retired in Summer ’25.
  • Versions 31.0 to 40.0: deprecated and unsupported from Summer ’27, retired from Summer ’28.
  • Version 41.0 and later: supported. Winter ’27 is API version 68.0.

What happens when an API version is retired?

Requests on a retired version fail. The REST API returns a 410 GONE error. For you, that looks like an integration that quietly stops syncing: orders stop arriving, leads stop flowing in from a marketing tool, or a nightly data load fails.

The usual suspects are older middleware, custom scripts written years ago, Data Loader configurations and connectors from vendors that have not been updated.

How do I find integrations using old API versions?

Salesforce logs API calls in its event logs. The API Total Usage event type records which API version each call used, along with the user and connected app. Filter it for versions 40.0 and below, then trace each call back to the system making it, usually via the integration user or connected app.

Then, for each one:

  • Your own code or scripts: change the version in the endpoint URL, for example /services/data/v68.0/, and test.
  • A vendor's connector: ask the vendor which version it uses and when they will update it.
  • Middleware: check the connector version and settings.

What about Apex classes on old API versions?

Every Apex class, trigger, Visualforce page and Lightning component is saved with an API version in its metadata. The code keeps the behaviour of that version, which means it misses fixes and changes made since.

Upgrading is mostly changing one number, but behaviour can change between versions, so do it properly:

  1. List your classes, triggers and components with their API versions.
  2. In a sandbox, move them to the current version in small groups.
  3. Read the versioned behaviour changes between the old and new version for the features you use.
  4. Run all Apex tests. Salesforce requires 75% code coverage to deploy, and failing tests usually point straight at a behaviour change.
  5. Deploy with a full test run and a rollback plan.

Lightning Web Components are usually the simplest to bump. Apex, Flow runtime and streaming behaviour need more testing.

When should I do this?

Before Summer ’27, when versions 31 to 40 become unsupported. Doing it early means you can upgrade at a quiet time, instead of during an outage when an integration has already stopped.

Summary

API retirements are announced well in advance, but they still catch teams out because old versions hide inside integrations nobody looks at. Check the API Total Usage logs, fix each old caller, and bring your Apex up to date while you are at it.

Want us to handle it? Our Salesforce API version upgrade covers the integration scan and up to 50 Apex classes and triggers for a fixed $199, upgraded and tested in a sandbox. For larger orgs, hire an Apex developer by the hour.

Want us to look at your setup?

Book a free 30-minute call. We will look at your Salesforce or CRM and tell you honestly what we would change first.