Custom Stripe migration scripts vs RevBridge
Write your own Stripe migration script if the seller keeps another product in the same account or your app must choose exactly which subscriptions move. Pick RevBridge if all of the seller's live subscriptions are part of the handover and you'd rather pay a fixed price than write and test renewal timing, card matching, retries and the seller's cancellation yourself.
A script calls the same Stripe APIs any tool does. The work sits in the order of the calls and in what happens when one fails halfway. Stripe documents the API route for Stripe-to-Stripe moves.
Source:Stripe: migrate subscriptions using APIs (opens in a new tab)
What does a migration script have to get right?
Map customers
Stripe's Customer Data Copy keeps customer IDs and gives copied payment methods new IDs. The script reads the pairs from Stripe's mapping file.
Pick the subscriptions
A customer can hold more than one subscription. If the seller keeps a product, build the list from subscription IDs, not customer IDs, and review it with the seller before any write.
Recreate the catalog
Products, prices and coupons stay in the seller's account.
Pick the paying card
Each subscription needs the card the customer pays with, under its new ID.
Keep the renewal date
The buyer's first charge must land when the customer expects to renew.
Survive a retry
A run that stops halfway must not create a second subscription when it starts again.
End the seller's billing at the right moment
Stripe's cancel call "cancels a customer's subscription immediately"; ending at the close of the paid period takes a different setting.
Record the pairs
Your app and both owners need each old and new subscription ID.
How do the open-source tools and RevBridge compare?
Checked 2026-11-26
haydenbleasel/ | codetree/ | RevBridge | |
|---|---|---|---|
| What it costs | haydenbleasel/Free, MIT license (repo (opens in a new tab)) | codetree/Free, MIT license (repo (opens in a new tab)) | RevBridge$149 to $1,990 once, by subscriptions the scan clears. Quote above 25,000. Paid when the live run starts |
| What it moves | haydenbleasel/Products, plans, coupons, webhooks and active subscriptions (README (opens in a new tab), code (opens in a new tab)) | codetree/Products, plans, coupons, customer balances and subscriptions; each new subscription gets the first item only, at quantity 1 (migrator code (opens in a new tab), subscription code (opens in a new tab)) | RevBridgeActive and trialing card-billed subscriptions the scan clears, plus any product, price or coupon the buyer's account lacks |
| When the buyer first charges | haydenbleasel/At the old period end, set as a trial_ (code (opens in a new tab)) | codetree/At the old period end, set as a billing_ for active subscriptions (code (opens in a new tab)) | RevBridgeOn the seller's next renewal date, with no proration. A trial keeps its end date |
| How the seller's billing ends | haydenbleasel/A cancel-subscriptions command cancels every subscription in the old account immediately (README (opens in a new tab), code (opens in a new tab)) | codetree/Its cancel_ step deletes each old subscription immediately, after finding a new one tagged with the old ID (migrator code (opens in a new tab), subscription code (opens in a new tab)) | RevBridgeRevBridge verifies the buyer's subscription, then confirms the seller's will end at the handover date. It sets the seller's end date if needed |
| What it checks first | haydenbleasel/--dry-run creates test customers from a sample of the seller's customers for a test-mode run. With no customer IDs supplied, the code takes up to 20 (README (opens in a new tab), code (opens in a new tab)) | codetree/Not stated on their site | RevBridgeA free scan of both live accounts that changes neither. One blocked subscription stops the live run |
| What it records | haydenbleasel/A printed JSON map of old to new subscription IDs (README (opens in a new tab)) | codetree/The old subscription ID in each new subscription's metadata, plus a run log (subscription code (opens in a new tab)) | RevBridgeA CSV or PDF audit trail with each seller and buyer subscription ID |
| Who runs it | haydenbleasel/Your engineer, from a cloned repo. Archived and no longer on npm. Last pushed July 25, 2026 (repo (opens in a new tab)) | codetree/Your engineer, as a Ruby gem. Last pushed April 17, 2019 (repo (opens in a new tab)) | RevBridgeThe buyer or the seller, in RevBridge, with a restricted key from each account |
What do the open-source tools say about themselves?
stripe-migrate lists its own known issues: it can't migrate overdue subscriptions, and cloned prices have no tax behavior set. Its author recommends a test-mode run first. It also takes a list of customer IDs, which helps when only some customers move.
stripe_ ships example scripts and an interactive console. Its code skips any customer who already has a subscription in the new account.
Both are code you can read, change and run. Both end old subscriptions at once, not at the close of the paid period. stripe-migrate cancels every subscription in the old account; stripe_ deletes only those it matched to a new one. Run that step only for subscriptions in the sale.
When is a script the better choice?
- The seller keeps other products in the same account. A script can move exactly the subscriptions in the sale. RevBridge's scan reads every live subscription in the seller's account.
- You have a handful of plain subscriptions. A short script and a check of each one may take less time than setting up any tool.
- Your billing needs handling no tool offers. Metered usage, subscription schedules, Stripe Tax and invoice billing block a RevBridge handover, and a script can treat each case your way. Check which Stripe billing setups can move
- Your app needs changes in the same step. A script can update your database as each subscription moves.
If you'd rather not write code, Stripe's toolkit imports subscriptions from a CSV. Compare the toolkit with RevBridge
What does RevBridge do that you would otherwise write?
- Reads both accounts in a free scan and names every subscription it can't move, before any change.
- Pairs each paid subscription with its copied card. It needs exactly one match in the buyer's account.
- Keeps paid subscriptions on their renewal date and preserves when trials are due to charge.
- Checks for an existing buyer subscription before creating one. If it finds one that no longer matches, RevBridge stops for review.
- Checks both accounts again right before writing, and stops if either changed.
- Confirms the seller's subscription will end at the handover date, after the buyer's is verified, and sets the end date if needed.
- Writes one audit trail you can share with the buyer and the seller.
Where does RevBridge fit?
RevBridge fits when the buyer bills from a separate account, all of the seller's live subscriptions are part of the handover, and nobody wants to own a one-off billing script. It accepts Stripe's mapping file unchanged. You pay once, when the live run starts; the scan before it is free. See how a RevBridge handover works, compare prices or start with the quickstart.
Check first whether the buyer can take over the seller's account. Your team still switches API keys and webhooks and checks the first renewals; the Stripe handover checklist lists who does what. See also MoveMRR vs RevBridge, SubPorter vs RevBridge and all Stripe migration tools compared.
Sources
- haydenbleasel/stripe-migrate README and repository (opens in a new tab) and GitHub API record (opens in a new tab), checked 2026-11-26
- stripe-migrate src/lib/subscriptions.ts (opens in a new tab), checked 2026-11-26
- codetree/stripe_migrant README and repository (opens in a new tab) and GitHub API record (opens in a new tab), checked 2026-11-26
- stripe_migrant lib/stripe_migrant/migrator.rb (opens in a new tab), checked 2026-11-26
- stripe_migrant lib/stripe_migrant/subscription.rb (opens in a new tab), checked 2026-11-26
- Stripe: migrate subscriptions using APIs (opens in a new tab), checked 2026-11-26
- Stripe: cancel a subscription (opens in a new tab), checked 2026-11-26
- Stripe Customer Data Copy (opens in a new tab), checked 2026-11-26