| [ Web Proxy ] |
| Viewing: https://stripe.com/gb/docs/upgrades | [Back] [Original] |
Check the Developer Changelog for the complete record of changes to Stripes API.
Your API version controls the API and webhook behavior you see (for example, what parameters you can include in requests, what properties you see in responses, and so on). Your version gets set the first time you make an API request. Each major release, such as Basil, includes changes that arent backward-compatible with previous releases. Upgrading to a new major release can require updates to existing code. Each monthly release includes only backward-compatible changes, and uses the same name as the last major release. You can safely upgrade to a new monthly release without breaking any existing code. To upgrade your API version, follow these steps.
When a Connect platform makes requests on behalf of connected accounts without specifying an API version, Stripe always uses the platforms API version. Regardless of a connected accounts API version, the platforms requests on its behalf always return responses matching the API version of the request.
Stripe considers the following changes to be backward-compatible:
ch_ on charge IDs).VARCHAR(255) COLLATE utf8_bin column (the COLLATE configuration provides case-sensitivity during lookups).If youre running an older version of the API, upgrade to the latest version to take advantage of new features and enhanced functionality.
Upgrading your API version affects:
Stripe-Version header: the parameters you can send and the structure of objects returned.See the API version used by recent requests on your account and the latest available upgrade from the Overview tab in Workbench.
When performing an API upgrade, make sure that you specify the API version that youre integrating against in your code instead of relying on your accounts default API version. To test a newer version for API calls, set the Stripe-Version header (in live or testing environments). Learn how to manage versioning in our server-side SDKs.
Thin events for API v1 resources are available in private preview. You can use them to streamline integration upgrades without changing your webhook configuration. Previously, thin events only supported API v2 resources. Learn more and request access.
Read our guide on how to handle webhook versioning.
When youre confident that your code can handle the latest API version, perform the upgrade using Workbench:
This switches the version used by API calls that dont have the Stripe-Version header and also switches the version used to render objects sent to your webhooks.
The default API version of your account at the time the event occurred defines the resources inside of events retrieved from the API. If your code retrieves events created when your default API version was different, it must account for any differences in the event versions.
For 72 hours after youve upgraded your API version, you can safely roll back to the version you were upgrading from in Workbench.
After youve rolled back, webhooks that were sent with the new object structure and failed will be retried with the old structure.
| Web Proxy Viewer | New URL | Original Page |