Update to Stripe
Snapshot Oct 29, 2026 · 00:05 UTC · version 8.0.1
Collection source: downloaded plugin package. These snapshots do not have a confirmed matching collection source. Differences in file lists alone do not establish changes to the package.
Instructions updated for upgrade-stripe
Full description — Now says: Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs, Stripe.js, and mobile SDKs
Observed in instructions or declared skills. Runtime behavior has not been tested.
Up to 3 plugins free · no card required.
All fields and original values.
Full description
Sep 30, 2026 · 22:45 UTC
Guide for upgrading Stripe API versions and SDKs
Oct 29, 2026 · 00:05 UTC
Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs, Stripe.js, and mobile SDKs
Skill instructions
Sep 30, 2026 · 22:45 UTC
Guide for upgrading Stripe API versions and SDKs This guide covers upgrading Stripe API versions, server-side SDKs, Stripe.js, and mobile SDKs. Bundled fallback API version: `2026-08-26.dahlia`. This value is only a snapshot from the las...
Oct 29, 2026 · 00:05 UTC
>- Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs, Stripe.js, and mobile SDKs Bundled fallback API version: `2026-09-30.endive`. This value is only a snapshot from the last time this skill was generated,...
Compare saved observations
Download comparison JSONSKILL.md text changes
− removed · + added
--- before +++ after @@ -1,26 +1,30 @@ --- name: upgrade-stripe -description: Guide for upgrading Stripe API versions and SDKs +description: >- + Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs, + Stripe.js, and mobile SDKs --- # Upgrading Stripe Versions -This guide covers upgrading Stripe API versions, server-side SDKs, Stripe.js, and mobile SDKs. - ## Choose a target API version If the user specifies a target API version, use it. Otherwise, look up the current version on docs.stripe.com with any documentation or web tool available to you, for example `stripe docs /api/versioning` with the Stripe CLI. The [API versioning](https://docs.stripe.com/api/versioning.md) page states it in the sentence that begins “The current version is”. -Bundled fallback API version: `2026-08-26.dahlia`. This value is only a snapshot from the last time this skill was generated, on 2026-09-22. Version identifiers start with their release date in YYYY-MM-DD format and new stable versions are released monthly, so a fallback version dated more than a month ago is probably stale. Use it only when you can’t reach docs.stripe.com. Never guess about a newer version number. +Bundled fallback API version: `2026-09-30.endive`. This value is only a snapshot from the last time this skill was generated, on 2026-10-15. Version identifiers start with their release date in YYYY-MM-DD format and new stable versions are released monthly, so a fallback version dated more than a month ago is probably stale. Use it only when you can’t reach docs.stripe.com. Never guess about a newer version number. Before making changes, compare the target with each API version the integration pins: client configuration, per-request overrides, and webhook endpoints. Unless the user explicitly asks for it, don’t move any pin to an older version or a stable pin to a preview version. If a pin already matches the target, report it as unchanged. State the selected target and its source. If live verification fails or is unavailable, say that the latest version remains unverified, and don’t claim the integration is on the latest version. +When reviewing webhook endpoints and event destinations, distinguish snapshot events from thin events. Thin event payloads are unversioned, so they don’t need to be upgraded when you change your API version. API calls that retrieve the full event or related resource remain versioned. + For SDKs that support explicit API version overrides, use the selected target in client configuration and per-request overrides. Use it in curl `Stripe-Version` test headers, too. Replace bundled API versions shown in those examples with the selected target before copying or running them. For Java, Go, and .NET, select an SDK release that targets the selected API version instead of overriding the SDK’s fixed version. Preview targets need the matching `beta` SDK release in every language; see [SDK versioning](https://docs.stripe.com/sdks/versioning.md). ## Understanding Stripe API Versioning -Stripe uses date-based API versions (e.g., `2026-08-26.dahlia`, `2025-08-27.basil`, `2024-12-18.acacia`). Your account’s API version determines request/response behavior. +Stripe uses date-based API versions (e.g., `2026-09-30.endive`, `2025-08-27.basil`, `2024-12-18.acacia`). Your account’s API version determines request/response behavior. + +Starting with the 2024-09-30.acacia release, Stripe releases new API versions monthly with no breaking changes. Twice a year, a new major release (for example, Basil) starts with an API version containing breaking changes. You can safely upgrade to any monthly release without updating your code. ### Types of Changes @@ -38,11 +42,11 @@ - Behavioral modifications - Removed endpoints or parameters -Review the [API Changelog](https://docs.stripe.com/changelog.md) for all changes between versions. +Review the [API changelog](https://docs.stripe.com/changelog.md) for all changes between versions. See [API upgrades](https://docs.stripe.com/upgrades.md) for the full upgrade guide. ## Server-Side SDK Versioning -See [SDK Version Management](https://docs.stripe.com/sdks/set-version.md) for details. +See [Set a Stripe API version for your SDK](https://docs.stripe.com/sdks/set-version.md) for details on setting an API version in code. ### Dynamically-Typed Languages (Ruby, Python, PHP, Node.js) @@ -52,16 +56,16 @@ ```python import stripe -stripe.api_version = '2026-08-26.dahlia' +stripe.api_version = '2026-09-30.endive' ``` ```ruby -Stripe.api_version = '2026-08-26.dahlia' +Stripe.api_version = '2026-09-30.endive' ``` ```javascript const stripe = require('stripe')('sk_test_xxx', { - apiVersion: '2026-08-26.dahlia' + apiVersion: '2026-09-30.endive' }); ``` @@ -70,7 +74,7 @@ ```python stripe.Customer.create( email="customer@example.com", - stripe_version='2026-08-26.dahlia' + stripe_version='2026-09-30.endive' ) ``` @@ -85,7 +89,7 @@ ```javascript // Good: Explicit version const stripe = require('stripe')('sk_test_xxx', { - apiVersion: '2026-08-26.dahlia' + apiVersion: '2026-09-30.endive' }); // Avoid: Relying on account default @@ -96,14 +100,14 @@ See [Stripe.js Versioning](https://docs.stripe.com/sdks/stripejs-versioning.md) for details. -Stripe.js uses an evergreen model with major releases (Acacia, Basil, Clover, Dahlia) on a biannual basis. +Stripe.js uses an evergreen model with major releases (Acacia, Basil, Clover, Dahlia, Endive) on a biannual basis. ### Loading Versioned Stripe.js **Via Script Tag:** ```html -<script src="https://js.stripe.com/dahlia/stripe.js"></script> +<script src="https://js.stripe.com/endive/stripe.js"></script> ``` **Via npm:** @@ -118,7 +122,7 @@ Each Stripe.js version automatically pairs with its corresponding API version. For instance: -- Dahlia Stripe.js uses `2026-08-26.dahlia` API +- Endive Stripe.js uses `2026-09-30.endive` API - Acacia Stripe.js uses `2024-12-18.acacia` API You can’t override this association. @@ -157,12 +161,12 @@ ## Upgrade Checklist -1. Review the [API Changelog](https://docs.stripe.com/changelog.md) for changes between your current and target versions -2. Check [Upgrades Guide](https://docs.stripe.com/upgrades.md) for migration guidance +1. Review the [API changelog](https://docs.stripe.com/changelog.md) for changes between your current and target versions +2. Check the [API upgrades guide](https://docs.stripe.com/upgrades.md) for migration guidance 3. Update server-side SDK package version (e.g., `npm update stripe`, `pip install --upgrade stripe`) 4. Update the `apiVersion` parameter in your Stripe client initialization 5. Test your integration against the new API version using the `Stripe-Version` header -6. Update webhook handlers to handle new event structures +6. For each destination that receives snapshot events, review its configured API version. For webhook endpoints, follow [webhook versioning](https://docs.stripe.com/webhooks/versioning.md). For every v2 snapshot event destination — including webhook endpoints, Amazon EventBridge, and Azure Event Grid destinations — inspect [snapshot_api_version](https://docs.stripe.com/api/v2/core/event-destinations/object.md#v2_event_destination_object-snapshot_api_version) and, if it differs from the target, create and test a replacement destination because you can’t change it after creation. For a replacement webhook endpoint, save its new signing secret and configure the handler to accept both secrets during testing and cutover. After cutover, disable or delete the old destination to avoid duplicate delivery. Leave thin event destinations unchanged 7. Update Stripe.js script tag or npm package version if needed 8. Update mobile SDK versions in your package manager if needed 9. Store Stripe object IDs in databases that accommodate up to 255 characters (case-sensitive collation) @@ -174,20 +178,22 @@ ```bash curl https://api.stripe.com/v1/customers \ -u sk_test_xxx: \ - -H "Stripe-Version: 2026-08-26.dahlia" + -H "Stripe-Version: 2026-09-30.endive" ``` Or in code: ```javascript const stripe = require('stripe')('sk_test_xxx', { - apiVersion: '2026-08-26.dahlia' // Test with new version + apiVersion: '2026-09-30.endive' // Test with new version }); ``` ## Important Notes +- For supported event types, follow the [migration guide](https://docs.stripe.com/webhooks/migrate-snapshot-to-thin-events.md) to move from snapshot events to thin events. After migration, webhook payloads no longer depend on API version upgrades; API calls that retrieve the full event or related resource remain versioned. - Your webhook listener should handle unfamiliar event types gracefully - Test webhooks with the new version structure before upgrading - Breaking changes are tagged by affected product areas (Payments, Billing, Connect, etc.) - Multiple API versions coexist simultaneously, enabling staged adoption +- For 72 hours after upgrading, you can roll back to your previous API version in [Workbench](https://dashboard.stripe.com/workbench/overview)
Full technical diff · 2 changed fields
changed /description
"Guide for upgrading Stripe API versions and SDKs"
"Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs, Stripe.js, and mobile SDKs"
changed /skill_md_contents
"---\nname: upgrade-stripe\ndescription: Guide for upgrading Stripe API versions and SDKs\n\n---\n\n# Upgrading Stripe Versions\n\nThis guide covers upgrading Stripe API versions, server-side SDKs, Stripe.js, and mobile SDKs.\n\n## Choose a target API version\n\nIf the user specifies a target API version, use it. Otherwise, look up the current version on docs.stripe.com with any documentation or web tool available to you, for example `stripe docs /api/versioning` with the Stripe CLI. The [API versioning](https://docs.stripe.com/api/versioning.md) page states it in the sentence that begins “The current version is”.\n\nBundled fallback API version: `2026-08-26.dahlia`. This value is only a snapshot from the last time this skill was generated, on 2026-09-22. Version identifiers start with their release date in YYYY-MM-DD format and new stable versions are released monthly, so a fallback version dated more than a month ago is probably stale. Use it only when you can’t reach docs.stripe.com. Never guess about a newer version number.\n\nBefore making changes, compare the target with each API version the integration pins: client configuration, per-request overrides, and webhook endpoints. Unless the user explicitly asks for it, don’t move any pin to an older version or a stable pin to a preview version. If a pin already matches the target, report it as unchanged. State the selected target and its source. If live verification fails or is unavailable, say that the latest version remains unverified, and don’t claim the integration is on the latest version.\n\nFor SDKs that support explicit API version overrides, use the selected target in client configuration and per-request overrides. Use it in curl `Stripe-Version` test headers, too. Replace bundled API versions shown in those examples with the selected target before copying or running them. For Java, Go, and .NET, select an SDK release that targets the selected API version instead of overriding the SDK’s fixed version. Preview targets need the matching `beta` SDK release in every language; see [SDK versioning](https://docs.stripe.com/sdks/versioning.md).\n\n## Understanding Stripe API Versioning\n\nStripe uses date-based API versions (e.g., `2026-08-26.dahlia`, `2025-08-27.basil`, `2024-12-18.acacia`). Your account’s API version determines request/response behavior.\n\n### Types of Changes\n\n**Backward-Compatible Changes** (don’t require code updates):\n\n- New API resources\n- New optional request parameters\n- New properties in existing responses\n- Changes to opaque string lengths (e.g., object IDs)\n- New webhook event types\n\n**Breaking Changes** (require code updates):\n\n- Field renames or removals\n- Behavioral modifications\n- Removed endpoints or parameters\n\nReview the [API Changelog](https://docs.stripe.com/changelog.md) for all changes between versions.\n\n## Server-Side SDK Versioning\n\nSee [SDK Version Management](https://docs.stripe.com/sdks/set-version.md) for details.\n\n### Dynamically-Typed Languages (Ruby, Python, PHP, Node.js)\n\nThese SDKs offer flexible version control:\n\n**Global Configuration:**\n\n```python\nimport stripe\nstripe.api_version = '2026-08-26.dahlia'\n```\n\n```ruby\nStripe.api_version = '2026-08-26.dahlia'\n```\n\n```javascript\nconst stripe = require('stripe')('sk_test_xxx', {\n apiVersion: '2026-08-26.dahlia'\n});\n```\n\n**Per-Request Override:**\n\n```python\nstripe.Customer.create(\n email=\"customer@example.com\",\n stripe_version='2026-08-26.dahlia'\n)\n```\n\n### Strongly-Typed Languages (Java, Go, .NET)\n\nThese use a fixed API version matching the SDK release date. Don’t set a different API version for strongly-typed languages because response objects might not match the strong types in the SDK. Instead, update the SDK to target a new API version.\n\n### Best Practice\n\nAlways specify the API version you’re integrating against in your code instead of relying on your account’s default API version:\n\n```javascript\n// Good: Explicit version\nconst stripe = require('stripe')('sk_test_xxx', {\n apiVersion: '2026-08-26.dahlia'\n});\n\n// Avoid: Relying on account default\nconst stripe = require('stripe')('sk_test_xxx');\n```\n\n## Stripe.js Versioning\n\nSee [Stripe.js Versioning](https://docs.stripe.com/sdks/stripejs-versioning.md) for details.\n\nStripe.js uses an evergreen model with major releases (Acacia, Basil, Clover, Dahlia) on a biannual basis.\n\n### Loading Versioned Stripe.js\n\n**Via Script Tag:**\n\n```html\n<script src=\"https://js.stripe.com/dahlia/stripe.js\"></script>\n```\n\n**Via npm:**\n\n```bash\nnpm install @stripe/stripe-js\n```\n\nMajor npm versions correspond to specific Stripe.js versions.\n\n### API Version Pairing\n\nEach Stripe.js version automatically pairs with its corresponding API version. For instance:\n\n- Dahlia Stripe.js uses `2026-08-26.dahlia` API\n- Acacia Stripe.js uses `2024-12-18.acacia` API\n\nYou can’t override this association.\n\n### Migrating from v3\n\n1. Identify your current API version in code\n2. Review the changelog for relevant changes\n3. Consider gradually updating your API version before switching Stripe.js versions\n4. Stripe continues supporting v3 indefinitely\n\n## Mobile SDK Versioning\n\nSee [Mobile SDK Versioning](https://docs.stripe.com/sdks/mobile-sdk-versioning.md) for details.\n\n### iOS and Android SDKs\n\nBoth platforms follow **semantic versioning** (MAJOR.MINOR.PATCH):\n\n- **MAJOR**: Breaking API changes\n- **MINOR**: New functionality (backward-compatible)\n- **PATCH**: Bug fixes (backward-compatible)\n\nNew features and fixes release only on the latest major version. Upgrade regularly to access improvements.\n\n### React Native SDK\n\nUses a different model (0.x.y schema):\n\n- **Minor version changes** (x): Breaking changes AND new features\n- **Patch updates** (y): Critical bug fixes only\n\n### Backend Compatibility\n\nAll mobile SDKs work with any Stripe API version you use on your backend unless documentation specifies otherwise.\n\n## Upgrade Checklist\n\n1. Review the [API Changelog](https://docs.stripe.com/changelog.md) for changes between your current and target versions\n2. Check [Upgrades Guide](https://docs.stripe.com/upgrades.md) for migration guidance\n3. Update server-side SDK package version (e.g., `npm update stripe`, `pip install --upgrade stripe`)\n4. Update the `apiVersion` parameter in your Stripe client initialization\n5. Test your integration against the new API version using the `Stripe-Version` header\n6. Update webhook handlers to handle new event structures\n7. Update Stripe.js script tag or npm package version if needed\n8. Update mobile SDK versions in your package manager if needed\n9. Store Stripe object IDs in databases that accommodate up to 255 characters (case-sensitive collation)\n\n## Testing API Version Changes\n\nUse the `Stripe-Version` header to test your code against a new version without changing your default:\n\n```bash\ncurl https://api.stripe.com/v1/customers \\\n -u sk_test_xxx: \\\n -H \"Stripe-Version: 2026-08-26.dahlia\"\n```\n\nOr in code:\n\n```javascript\nconst stripe = require('stripe')('sk_test_xxx', {\n apiVersion: '2026-08-26.dahlia' // Test with new version\n});\n```\n\n## Important Notes\n\n- Your webhook listener should handle unfamiliar event types gracefully\n- Test webhooks with the new version structure before upgrading\n- Breaking changes are tagged by affected product areas (Payments, Billing, Connect, etc.)\n- Multiple API versions coexist simultaneously, enabling staged adoption\n""---\nname: upgrade-stripe\ndescription: >-\n Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs,\n Stripe.js, and mobile SDKs\n\n---\n\n# Upgrading Stripe Versions\n\n## Choose a target API version\n\nIf the user specifies a target API version, use it. Otherwise, look up the current version on docs.stripe.com with any documentation or web tool available to you, for example `stripe docs /api/versioning` with the Stripe CLI. The [API versioning](https://docs.stripe.com/api/versioning.md) page states it in the sentence that begins “The current version is”.\n\nBundled fallback API version: `2026-09-30.endive`. This value is only a snapshot from the last time this skill was generated, on 2026-10-15. Version identifiers start with their release date in YYYY-MM-DD format and new stable versions are released monthly, so a fallback version dated more than a month ago is probably stale. Use it only when you can’t reach docs.stripe.com. Never guess about a newer version number.\n\nBefore making changes, compare the target with each API version the integration pins: client configuration, per-request overrides, and webhook endpoints. Unless the user explicitly asks for it, don’t move any pin to an older version or a stable pin to a preview version. If a pin already matches the target, report it as unchanged. State the selected target and its source. If live verification fails or is unavailable, say that the latest version remains unverified, and don’t claim the integration is on the latest version.\n\nWhen reviewing webhook endpoints and event destinations, distinguish snapshot events from thin events. Thin event payloads are unversioned, so they don’t need to be upgraded when you change your API version. API calls that retrieve the full event or related resource remain versioned.\n\nFor SDKs that support explicit API version overrides, use the selected target in client configuration and per-request overrides. Use it in curl `Stripe-Version` test headers, too. Replace bundled API versions shown in those examples with the selected target before copying or running them. For Java, Go, and .NET, select an SDK release that targets the selected API version instead of overriding the SDK’s fixed version. Preview targets need the matching `beta` SDK release in every language; see [SDK versioning](https://docs.stripe.com/sdks/versioning.md).\n\n## Understanding Stripe API Versioning\n\nStripe uses date-based API versions (e.g., `2026-09-30.endive`, `2025-08-27.basil`, `2024-12-18.acacia`). Your account’s API version determines request/response behavior.\n\nStarting with the 2024-09-30.acacia release, Stripe releases new API versions monthly with no breaking changes. Twice a year, a new major release (for example, Basil) starts with an API version containing breaking changes. You can safely upgrade to any monthly release without updating your code.\n\n### Types of Changes\n\n**Backward-Compatible Changes** (don’t require code updates):\n\n- New API resources\n- New optional request parameters\n- New properties in existing responses\n- Changes to opaque string lengths (e.g., object IDs)\n- New webhook event types\n\n**Breaking Changes** (require code updates):\n\n- Field renames or removals\n- Behavioral modifications\n- Removed endpoints or parameters\n\nReview the [API changelog](https://docs.stripe.com/changelog.md) for all changes between versions. See [API upgrades](https://docs.stripe.com/upgrades.md) for the full upgrade guide.\n\n## Server-Side SDK Versioning\n\nSee [Set a Stripe API version for your SDK](https://docs.stripe.com/sdks/set-version.md) for details on setting an API version in code.\n\n### Dynamically-Typed Languages (Ruby, Python, PHP, Node.js)\n\nThese SDKs offer flexible version control:\n\n**Global Configuration:**\n\n```python\nimport stripe\nstripe.api_version = '2026-09-30.endive'\n```\n\n```ruby\nStripe.api_version = '2026-09-30.endive'\n```\n\n```javascript\nconst stripe = require('stripe')('sk_test_xxx', {\n apiVersion: '2026-09-30.endive'\n});\n```\n\n**Per-Request Override:**\n\n```python\nstripe.Customer.create(\n email=\"customer@example.com\",\n stripe_version='2026-09-30.endive'\n)\n```\n\n### Strongly-Typed Languages (Java, Go, .NET)\n\nThese use a fixed API version matching the SDK release date. Don’t set a different API version for strongly-typed languages because response objects might not match the strong types in the SDK. Instead, update the SDK to target a new API version.\n\n### Best Practice\n\nAlways specify the API version you’re integrating against in your code instead of relying on your account’s default API version:\n\n```javascript\n// Good: Explicit version\nconst stripe = require('stripe')('sk_test_xxx', {\n apiVersion: '2026-09-30.endive'\n});\n\n// Avoid: Relying on account default\nconst stripe = require('stripe')('sk_test_xxx');\n```\n\n## Stripe.js Versioning\n\nSee [Stripe.js Versioning](https://docs.stripe.com/sdks/stripejs-versioning.md) for details.\n\nStripe.js uses an evergreen model with major releases (Acacia, Basil, Clover, Dahlia, Endive) on a biannual basis.\n\n### Loading Versioned Stripe.js\n\n**Via Script Tag:**\n\n```html\n<script src=\"https://js.stripe.com/endive/stripe.js\"></script>\n```\n\n**Via npm:**\n\n```bash\nnpm install @stripe/stripe-js\n```\n\nMajor npm versions correspond to specific Stripe.js versions.\n\n### API Version Pairing\n\nEach Stripe.js version automatically pairs with its corresponding API version. For instance:\n\n- Endive Stripe.js uses `2026-09-30.endive` API\n- Acacia Stripe.js uses `2024-12-18.acacia` API\n\nYou can’t override this association.\n\n### Migrating from v3\n\n1. Identify your current API version in code\n2. Review the changelog for relevant changes\n3. Consider gradually updating your API version before switching Stripe.js versions\n4. Stripe continues supporting v3 indefinitely\n\n## Mobile SDK Versioning\n\nSee [Mobile SDK Versioning](https://docs.stripe.com/sdks/mobile-sdk-versioning.md) for details.\n\n### iOS and Android SDKs\n\nBoth platforms follow **semantic versioning** (MAJOR.MINOR.PATCH):\n\n- **MAJOR**: Breaking API changes\n- **MINOR**: New functionality (backward-compatible)\n- **PATCH**: Bug fixes (backward-compatible)\n\nNew features and fixes release only on the latest major version. Upgrade regularly to access improvements.\n\n### React Native SDK\n\nUses a different model (0.x.y schema):\n\n- **Minor version changes** (x): Breaking changes AND new features\n- **Patch updates** (y): Critical bug fixes only\n\n### Backend Compatibility\n\nAll mobile SDKs work with any Stripe API version you use on your backend unless documentation specifies otherwise.\n\n## Upgrade Checklist\n\n1. Review the [API changelog](https://docs.stripe.com/changelog.md) for changes between your current and target versions\n2. Check the [API upgrades guide](https://docs.stripe.com/upgrades.md) for migration guidance\n3. Update server-side SDK package version (e.g., `npm update stripe`, `pip install --upgrade stripe`)\n4. Update the `apiVersion` parameter in your Stripe client initialization\n5. Test your integration against the new API version using the `Stripe-Version` header\n6. For each destination that receives snapshot events, review its configured API version. For webhook endpoints, follow [webhook versioning](https://docs.stripe.com/webhooks/versioning.md). For every v2 snapshot event destination — including webhook endpoints, Amazon EventBridge, and Azure Event Grid destinations — inspect [snapshot_api_version](https://docs.stripe.com/api/v2/core/event-destinations/object.md#v2_event_destination_object-snapshot_api_version) and, if it differs from the target, create and test a replacement destination because you can’t change it after creation. For a replacement webhook endpoint, save its new signing secret and configure the handler to accept both secrets during testing and cutover. After cutover, disable or delete the old destination to avoid duplicate delivery. Leave thin event destinations unchanged\n7. Update Stripe.js script tag or npm package version if needed\n8. Update mobile SDK versions in your package manager if needed\n9. Store Stripe object IDs in databases that accommodate up to 255 characters (case-sensitive collation)\n\n## Testing API Version Changes\n\nUse the `Stripe-Version` header to test your code against a new version without changing your default:\n\n```bash\ncurl https://api.stripe.com/v1/customers \\\n -u sk_test_xxx: \\\n -H \"Stripe-Version: 2026-09-30.endive\"\n```\n\nOr in code:\n\n```javascript\nconst stripe = require('stripe')('sk_test_xxx', {\n apiVersion: '2026-09-30.endive' // Test with new version\n});\n```\n\n## Important Notes\n\n- For supported event types, follow the [migration guide](https://docs.stripe.com/webhooks/migrate-snapshot-to-thin-events.md) to move from snapshot events to thin events. After migration, webhook payloads no longer depend on API version upgrades; API calls that retrieve the full event or related resource remain versioned.\n- Your webhook listener should handle unfamiliar event types gracefully\n- Test webhooks with the new version structure before upgrading\n- Breaking changes are tagged by affected product areas (Payments, Billing, Connect, etc.)\n- Multiple API versions coexist simultaneously, enabling staged adoption\n- For 72 hours after upgrading, you can roll back to your previous API version in [Workbench](https://dashboard.stripe.com/workbench/overview)\n"Full snapshot data
{
"description": "Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs, Stripe.js, and mobile SDKs",
"included_files": [],
"name": "upgrade-stripe",
"skill_md_contents": "---\nname: upgrade-stripe\ndescription: >-\n Guide for upgrading Stripe API versions, webhook endpoints, server-side SDKs,\n Stripe.js, and mobile SDKs\n\n---\n\n# Upgrading Stripe Versions\n\n## Choose a target API version\n\nIf the user specifies a target API version, use it. Otherwise, look up the current version on docs.stripe.com with any documentation or web tool available to you, for example `stripe docs /api/versioning` with the Stripe CLI. The [API versioning](https://docs.stripe.com/api/versioning.md) page states it in the sentence that begins “The current version is”.\n\nBundled fallback API version: `2026-09-30.endive`. This value is only a snapshot from the last time this skill was generated, on 2026-10-15. Version identifiers start with their release date in YYYY-MM-DD format and new stable versions are released monthly, so a fallback version dated more than a month ago is probably stale. Use it only when you can’t reach docs.stripe.com. Never guess about a newer version number.\n\nBefore making changes, compare the target with each API version the integration pins: client configuration, per-request overrides, and webhook endpoints. Unless the user explicitly asks for it, don’t move any pin to an older version or a stable pin to a preview version. If a pin already matches the target, report it as unchanged. State the selected target and its source. If live verification fails or is unavailable, say that the latest version remains unverified, and don’t claim the integration is on the latest version.\n\nWhen reviewing webhook endpoints and event destinations, distinguish snapshot events from thin events. Thin event payloads are unversioned, so they don’t need to be upgraded when you change your API version. API calls that retrieve the full event or related resource remain versioned.\n\nFor SDKs that support explicit API version overrides, use the selected target in client configuration and per-request overrides. Use it in curl `Stripe-Version` test headers, too. Replace bundled API versions shown in those examples with the selected target before copying or running them. For Java, Go, and .NET, select an SDK release that targets the selected API version instead of overriding the SDK’s fixed version. Preview targets need the matching `beta` SDK release in every language; see [SDK versioning](https://docs.stripe.com/sdks/versioning.md).\n\n## Understanding Stripe API Versioning\n\nStripe uses date-based API versions (e.g., `2026-09-30.endive`, `2025-08-27.basil`, `2024-12-18.acacia`). Your account’s API version determines request/response behavior.\n\nStarting with the 2024-09-30.acacia release, Stripe releases new API versions monthly with no breaking changes. Twice a year, a new major release (for example, Basil) starts with an API version containing breaking changes. You can safely upgrade to any monthly release without updating your code.\n\n### Types of Changes\n\n**Backward-Compatible Changes** (don’t require code updates):\n\n- New API resources\n- New optional request parameters\n- New properties in existing responses\n- Changes to opaque string lengths (e.g., object IDs)\n- New webhook event types\n\n**Breaking Changes** (require code updates):\n\n- Field renames or removals\n- Behavioral modifications\n- Removed endpoints or parameters\n\nReview the [API changelog](https://docs.stripe.com/changelog.md) for all changes between versions. See [API upgrades](https://docs.stripe.com/upgrades.md) for the full upgrade guide.\n\n## Server-Side SDK Versioning\n\nSee [Set a Stripe API version for your SDK](https://docs.stripe.com/sdks/set-version.md) for details on setting an API version in code.\n\n### Dynamically-Typed Languages (Ruby, Python, PHP, Node.js)\n\nThese SDKs offer flexible version control:\n\n**Global Configuration:**\n\n```python\nimport stripe\nstripe.api_version = '2026-09-30.endive'\n```\n\n```ruby\nStripe.api_version = '2026-09-30.endive'\n```\n\n```javascript\nconst stripe = require('stripe')('sk_test_xxx', {\n apiVersion: '2026-09-30.endive'\n});\n```\n\n**Per-Request Override:**\n\n```python\nstripe.Customer.create(\n email=\"customer@example.com\",\n stripe_version='2026-09-30.endive'\n)\n```\n\n### Strongly-Typed Languages (Java, Go, .NET)\n\nThese use a fixed API version matching the SDK release date. Don’t set a different API version for strongly-typed languages because response objects might not match the strong types in the SDK. Instead, update the SDK to target a new API version.\n\n### Best Practice\n\nAlways specify the API version you’re integrating against in your code instead of relying on your account’s default API version:\n\n```javascript\n// Good: Explicit version\nconst stripe = require('stripe')('sk_test_xxx', {\n apiVersion: '2026-09-30.endive'\n});\n\n// Avoid: Relying on account default\nconst stripe = require('stripe')('sk_test_xxx');\n```\n\n## Stripe.js Versioning\n\nSee [Stripe.js Versioning](https://docs.stripe.com/sdks/stripejs-versioning.md) for details.\n\nStripe.js uses an evergreen model with major releases (Acacia, Basil, Clover, Dahlia, Endive) on a biannual basis.\n\n### Loading Versioned Stripe.js\n\n**Via Script Tag:**\n\n```html\n<script src=\"https://js.stripe.com/endive/stripe.js\"></script>\n```\n\n**Via npm:**\n\n```bash\nnpm install @stripe/stripe-js\n```\n\nMajor npm versions correspond to specific Stripe.js versions.\n\n### API Version Pairing\n\nEach Stripe.js version automatically pairs with its corresponding API version. For instance:\n\n- Endive Stripe.js uses `2026-09-30.endive` API\n- Acacia Stripe.js uses `2024-12-18.acacia` API\n\nYou can’t override this association.\n\n### Migrating from v3\n\n1. Identify your current API version in code\n2. Review the changelog for relevant changes\n3. Consider gradually updating your API version before switching Stripe.js versions\n4. Stripe continues supporting v3 indefinitely\n\n## Mobile SDK Versioning\n\nSee [Mobile SDK Versioning](https://docs.stripe.com/sdks/mobile-sdk-versioning.md) for details.\n\n### iOS and Android SDKs\n\nBoth platforms follow **semantic versioning** (MAJOR.MINOR.PATCH):\n\n- **MAJOR**: Breaking API changes\n- **MINOR**: New functionality (backward-compatible)\n- **PATCH**: Bug fixes (backward-compatible)\n\nNew features and fixes release only on the latest major version. Upgrade regularly to access improvements.\n\n### React Native SDK\n\nUses a different model (0.x.y schema):\n\n- **Minor version changes** (x): Breaking changes AND new features\n- **Patch updates** (y): Critical bug fixes only\n\n### Backend Compatibility\n\nAll mobile SDKs work with any Stripe API version you use on your backend unless documentation specifies otherwise.\n\n## Upgrade Checklist\n\n1. Review the [API changelog](https://docs.stripe.com/changelog.md) for changes between your current and target versions\n2. Check the [API upgrades guide](https://docs.stripe.com/upgrades.md) for migration guidance\n3. Update server-side SDK package version (e.g., `npm update stripe`, `pip install --upgrade stripe`)\n4. Update the `apiVersion` parameter in your Stripe client initialization\n5. Test your integration against the new API version using the `Stripe-Version` header\n6. For each destination that receives snapshot events, review its configured API version. For webhook endpoints, follow [webhook versioning](https://docs.stripe.com/webhooks/versioning.md). For every v2 snapshot event destination — including webhook endpoints, Amazon EventBridge, and Azure Event Grid destinations — inspect [snapshot_api_version](https://docs.stripe.com/api/v2/core/event-destinations/object.md#v2_event_destination_object-snapshot_api_version) and, if it differs from the target, create and test a replacement destination because you can’t change it after creation. For a replacement webhook endpoint, save its new signing secret and configure the handler to accept both secrets during testing and cutover. After cutover, disable or delete the old destination to avoid duplicate delivery. Leave thin event destinations unchanged\n7. Update Stripe.js script tag or npm package version if needed\n8. Update mobile SDK versions in your package manager if needed\n9. Store Stripe object IDs in databases that accommodate up to 255 characters (case-sensitive collation)\n\n## Testing API Version Changes\n\nUse the `Stripe-Version` header to test your code against a new version without changing your default:\n\n```bash\ncurl https://api.stripe.com/v1/customers \\\n -u sk_test_xxx: \\\n -H \"Stripe-Version: 2026-09-30.endive\"\n```\n\nOr in code:\n\n```javascript\nconst stripe = require('stripe')('sk_test_xxx', {\n apiVersion: '2026-09-30.endive' // Test with new version\n});\n```\n\n## Important Notes\n\n- For supported event types, follow the [migration guide](https://docs.stripe.com/webhooks/migrate-snapshot-to-thin-events.md) to move from snapshot events to thin events. After migration, webhook payloads no longer depend on API version upgrades; API calls that retrieve the full event or related resource remain versioned.\n- Your webhook listener should handle unfamiliar event types gracefully\n- Test webhooks with the new version structure before upgrading\n- Breaking changes are tagged by affected product areas (Payments, Billing, Connect, etc.)\n- Multiple API versions coexist simultaneously, enabling staged adoption\n- For 72 hours after upgrading, you can roll back to your previous API version in [Workbench](https://dashboard.stripe.com/workbench/overview)\n"
}SHA-256 of public snapshot: 5d3f5306d0a1e5aba8dd18a21e607ac18ab7a693b6dc8a9393c45b26410c83dc