Skip to content

Instantly share code, notes, and snippets.

@evolve2k
Last active April 20, 2023 06:02
Show Gist options
  • Save evolve2k/c2ff42f04f54990170e67a2211e6158b to your computer and use it in GitHub Desktop.
Save evolve2k/c2ff42f04f54990170e67a2211e6158b to your computer and use it in GitHub Desktop.
Stripe Migration Plan

Undertaking a full account migration from one stripe account to another.

1. Stripe Supported Migration

The Stripe team can help with an import. Current (2023) they only help move the following models: Whether you ask the Stripe Team to do it for you (no cost) or you do it with their beta tool, what can be copied remains the same.

  • Customers (All or as specified)
  • Payment Method (Basically the credit card data)

Per their own documentation they currently (2023) dont help move:

Individual charges, nvoices, plans and subscriptions, coupons, events, logs, SEPA sources, Bacs PaymentMethods, Connected accounts, and Guest customers

refs:

2. Using a script

A few scripts have been created to help move other data across. The most recently updated script on Github (2023) is teamrevin/stripe-account-migration.

It supports copying of:

  • coupons
  • prices
  • products
  • subscriptions
  • default-pay-methods

The above script does not seem to handle:

  • transactions and 'indivudal charges' (are these the same thing?)
  • invoices
  • logs
  • SEPA sources
  • Bacs PaymentMethods
  • Connected accounts
  • Guest customers
  1. Open questions

Copying transactions across seem the most important remaining bottleneck. I'm also guessing that the transactions inform much of what is shown on the dashboard, as that draws historical data likley drawn from the transactions data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment