connect-recommend
Use this skill when the user asks about Stripe Connect configuration, charge patterns, Dashboard access, or how to get started with Connect, is building a…
Guide for upgrading Stripe API versions and SDKs
$ npx -y skills add stripe/agent-toolkit --skill upgrade-stripe --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/upgrade-stripeContext preview
The summary Claude sees to decide when to auto-load this skill.
Guide for upgrading Stripe API versions and SDKs
name: upgrade-stripe description: Guide for upgrading Stripe API versions and SDKs
The latest Stripe API version is 2026-08-26.dahlia - use this version when upgrading unless the user specifies a different target version.
This guide covers upgrading Stripe API versions, server-side SDKs, Stripe.js, and mobile SDKs.
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.
**Backward-Compatible Changes** (don’t require code updates):
**Breaking Changes** (require code updates):
Review the [API Changelog](https://docs.stripe.com/changelog.md) for all changes between versions.
See [SDK Version Management](https://docs.stripe.com/sdks/set-version.md) for details.
These SDKs offer flexible version control:
**Global Configuration:**
import stripe stripe.api_version = '2026-08-26.dahlia'
Stripe.api_version = '2026-08-26.dahlia'
const stripe = require('stripe')('sk_test_xxx', {
apiVersion: '2026-08-26.dahlia'
});**Per-Request Override:**
stripe.Customer.create( email="customer@example.com", stripe_version='2026-08-26.dahlia' )
These 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.
Always specify the API version you’re integrating against in your code instead of relying on your account’s default API version:
// Good: Explicit version
const stripe = require('stripe')('sk_test_xxx', {
apiVersion: '2026-08-26.dahlia'
});
// Avoid: Relying on account default
const stripe = require('stripe')('sk_test_xxx');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.
**Via Script Tag:**
<script src="https://js.stripe.com/dahlia/stripe.js"></script>
**Via npm:**
npm install @stripe/stripe-js
Major npm versions correspond to specific Stripe.js versions.
Each Stripe.js version automatically pairs with its corresponding API version. For instance:
You can’t override this association.
1. Identify your current API version in code 2. Review the changelog for relevant changes 3. Consider gradually updating your API version before switching Stripe.js versions 4. Stripe continues supporting v3 indefinitely
See [Mobile SDK Versioning](https://docs.stripe.com/sdks/mobile-sdk-versioning.md) for details.
Both platforms follow **semantic versioning** (MAJOR.MINOR.PATCH):
New features and fixes release only on the latest major version. Upgrade regularly to access improvements.
Uses a different model (0.x.y schema):
All mobile SDKs work with any Stripe API version you use on your backend unless documentation specifies otherwise.
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 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 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)
Use the `Stripe-Version` header to test your code against a new version without changing your default:
curl https://api.stripe.com/v1/customers \ -u sk_test_xxx: \ -H "Stripe-Version: 2026-08-26.dahlia"
Or in code:
const stripe = require('stripe')('sk_test_xxx', {
apiVersion: '2026-08-26.dahlia' // Test with new version
});This repo is the one-stop shop for building AI-powered products and businesses on top of Stripe.
Repo: stripe/agent-toolkit
Use this skill when the user asks about Stripe Connect configuration, charge patterns, Dashboard access, or how to get started with Connect, is building a…
Use this skill when the user asks what information a Stripe Connect connected account must provide for verification, onboarding, KYC, or account requirements;…
Use when building, modifying, or reviewing a Stripe App — or when the user describes something that implies one (e.g. "add a panel to the customer page",…
Guides Stripe integration decisions across development and test environment planning (separate sandboxes vs the shared test mode sandbox), API selection…
Identifies external providers, merchants, nonprofits, platforms, APIs, and software services, and resolves the documented way to engage them — to pay, donate,…
Use when the user or agent needs to read, search, or look up Stripe documentation or API reference. Prefer this over curl or WebFetch for any docs.stripe.com…