Skip to contentRevBridge

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?

  1. 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.

    Source:Stripe Customer Data Copy⁠⁠ (opens in a new tab)

  2. 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.

  3. Recreate the catalog

    Products, prices and coupons stay in the seller's account.

    Source:Stripe Customer Data Copy⁠⁠ (opens in a new tab)

  4. Pick the paying card

    Each subscription needs the card the customer pays with, under its new ID.

  5. Keep the renewal date

    The buyer's first charge must land when the customer expects to renew.

  6. Survive a retry

    A run that stops halfway must not create a second subscription when it starts again.

  7. 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.

    Source:Stripe: cancel a subscription⁠⁠ (opens in a new tab)

  8. 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

What it costshaydenbleasel/stripe-migrateFree, MIT license (repo⁠⁠ (opens in a new tab))codetree/stripe_migrantFree, 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 moveshaydenbleasel/stripe-migrateProducts, plans, coupons, webhooks and active subscriptions (README⁠⁠ (opens in a new tab), code⁠⁠ (opens in a new tab))codetree/stripe_migrantProducts, 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 chargeshaydenbleasel/stripe-migrateAt the old period end, set as a trial_end (code⁠⁠ (opens in a new tab))codetree/stripe_migrantAt the old period end, set as a billing_cycle_anchor 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 endshaydenbleasel/stripe-migrateA cancel-subscriptions command cancels every subscription in the old account immediately (README⁠⁠ (opens in a new tab), code⁠⁠ (opens in a new tab))codetree/stripe_migrantIts cancel_confirmed_subscriptions 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 firsthaydenbleasel/stripe-migrate--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/stripe_migrantNot stated on their siteRevBridgeA free scan of both live accounts that changes neither. One blocked subscription stops the live run
What it recordshaydenbleasel/stripe-migrateA printed JSON map of old to new subscription IDs (README⁠⁠ (opens in a new tab))codetree/stripe_migrantThe 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 ithaydenbleasel/stripe-migrateYour engineer, from a cloned repo. Archived and no longer on npm. Last pushed July 25, 2026 (repo⁠⁠ (opens in a new tab))codetree/stripe_migrantYour 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.

Source:stripe-migrate README⁠⁠ (opens in a new tab)

stripe_migrant ships example scripts and an interactive console. Its code skips any customer who already has a subscription in the new account.

Source:stripe_migrant⁠⁠ (opens in a new tab)

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_migrant 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