Skip to Content
NewThe Developer API and signed webhooks send your subscription data to your warehouse, ERP or CRM. Read the API docs →
FeaturesImport & Migration

Import & migration (CSV)

If you’re switching from another subscription app, Curobi can import your existing subscriptions from a CSV file, so customers don’t have to re-subscribe or re-enter a card. Each row becomes a real Shopify subscription contract, which Curobi owns and bills from then on.

Available on the Business and Pro plans. On Free, Starter and Growth, the Import page shows an upgrade prompt instead of the tool. See Pricing & Plans. For a step-by-step walkthrough, see Import subscriptions from another app.

Moving from Recharge, Appstle, Loop or Awtomic

Recharge, Appstle, Loop and Awtomic are Shopify-Payments-based apps, so your customers’ cards are already saved in Shopify’s vault. For each subscription you need only the customer’s email. There are no card IDs to hunt for, no gateway tokens, and no vaulting step. This is Path A, the easiest of the three payment paths.

The rule behind it applies to any app: if the old app charged cards through Shopify Payments, the card is already in Shopify, and the email is enough. It also decides the exceptions: if your store’s subscriptions were charged through Stripe, Braintree or Authorize.Net instead, the cards live in that gateway’s vault, and you’re on Path C whichever app you’re leaving.

Why Curobi creates new subscriptions

Shopify only lets an app see and manage the subscriptions that app created. This is a Shopify boundary, not a Curobi choice. Curobi can’t take over, or even read, the subscriptions your old app holds. So the import builds new ones from your file instead.

One consequence matters more than any other: the import doesn’t touch your old app’s subscriptions. Nothing in it pauses or cancels them, and nothing on Curobi’s side can stop the old app from charging. That’s why the next billing date needs care.

How it works

Open Data & API → Import subscriptions in Curobi’s top navigation, or Import subscriptions under Curobi in your Shopify admin sidebar. The page is called the Migration Center.

Choosing to import and migrate subscriptions

  1. Choose your migration source. Pick Recharge, Appstle, Loop, Bold, Seal, or Custom for any other app. Curobi tailors the checklist of steps to your choice. The columns in the file are the same whichever source you pick.

    The Migration Center with Recharge picked: the five-step progress tracker on Upload, and the Recharge checklist

  2. Download the template to get a sample CSV with the column headers Curobi reads. It has three example rows, one for each payment path: Path A by email, Path B by paymentMethodId, and Path C with Stripe tokens. Replace them with your exported data, or rename your export’s columns to match. Then drag in your file, or paste it under Advanced: paste CSV manually.

    Download the sample CSV and upload your file

  3. Validate (dry run). Curobi checks every row and creates nothing. You’ll see which rows pass and which have problems, such as a variant that isn’t in your store, an interval that isn’t one of the four allowed values, or a duplicate externalId. Fix them, re-upload, and validate again until the file is clean.

  4. Vault payment methods (Path C only). If your rows carry Stripe, Braintree or Authorize.Net tokens, this step imports each card into Shopify’s vault, so the new subscription has a Shopify payment method to bill. Vaulting isn’t instant: run it, then run it again until every card shows ready. Re-running is safe, because a card that’s already vaulted is never vaulted twice. Validate and Commit then use the vaulted card. Once every card is ready, validate again before you commit. Rows on Path A or Path B skip this step. Your old gateway account must be connected to your Shopify store first: see Before you start Path C.

  5. Commit. Click Import. Curobi creates the live subscription contracts through Shopify’s own contract-creation API. They’re genuine Shopify subscriptions, not Curobi-only records.

Then check before you switch the old app off. Spot-check a few imported subscriptions, and watch the first renewal. That renewal is the first time an imported price, date and card are actually charged, so a mistake validation can’t see, such as an order total entered as the unit price, first costs a customer money there. Switch the old app off only once it has gone through cleanly.

100 rows per run

One row is one subscription. Curobi processes at most 100 rows per run; the header row and blank lines don’t count. If a file has more, rows after the 100th aren’t checked, vaulted or imported, and the page says “Only the first 100 rows were processed. Split the file and re-run — already-imported rows are skipped.” The total on the page still counts every row in the file, so don’t read it as the number imported. The limit applies to Validate, Vault payment methods and Import alike.

Uploading the same file again won’t reach row 101, because the first 100 just come back as already imported. So split a larger book into files of 100 rows or fewer, each with the header row. Batches are safe to overlap or repeat, because of how duplicates are handled.

Choose a payment path

A subscription can only renew if it has a card to charge. This is the one real decision in a migration, and it depends on where your customers’ cards are stored today.

PathYour situationFill inLeave blank
A (easiest)Leaving an app that ran on Shopify Payments. The card is already in Shopify’s vault.emailpaymentMethodId, gateway, tokens
BYou have a Shopify vaulted-card ID (a gid://shopify/CustomerPaymentMethod/… GID)paymentMethodIdgateway, tokens
CLeaving Stripe, Braintree or Authorize.Netgateway, that gateway’s tokens, and emailpaymentMethodId

Curobi works out the path row by row, from the payment columns you filled in. If a row has more than one, the most specific wins: a paymentMethodId first, then a gateway token, then the email. That’s why the other paths’ columns must stay blank. A stray paymentMethodId on a row you meant for Path A overrides the email lookup.

  • Path A looks the customer up by email and uses the first usable card on their Shopify account: the first active, fully processed card among their first 10 saved cards. That isn’t necessarily the card your old app was charging. If a customer has several cards and you need a particular one, use Path B for that row. If the customer has no usable card, the row fails: see When a row fails.
  • Path B uses exactly the card you name. Use it when your old app’s export includes the CustomerPaymentMethod GID.
  • Path C is for cards held outside Shopify. Stripe, Braintree and Authorize.Net are the only outside gateways the importer can bring cards in from. These rows go through the Vault step before you commit.

For Paths A and C, the customer must already exist in Shopify. Curobi looks them up; it doesn’t create customers. You can give their Shopify customer ID in customerId instead of the email.

Before you start Path C

Path C needs setup outside Curobi. Email hello@curobi.com before you start a Path C migration, and we’ll go through it with you.

  • Your old gateway account must be connected to your Shopify store first. Shopify charges the imported cards through that account. With Stripe or Braintree, imported subscriptions keep billing through it, while new subscriptions go through Shopify Payments. Authorize.Net works the same way if you’re moving to Shopify Payments. If Authorize.Net is already your store’s main payment gateway, no extra connection is needed.
  • Not every saved payment method can come across. From Stripe, only credit cards. From Braintree, credit cards and Apple Pay, but not PayPal or Google Pay. Braintree’s connection also can’t bill subscriptions in more than one currency. From Authorize.Net, the saved customer payment profiles in its Customer Information Manager (CIM).
  • You need the gateway’s tokens. Getting them out usually takes a formal request to the gateway. See Where to find payment IDs.

After Vault payment methods, a warning says “Your old payment gateway isn’t connected to Shopify” when Shopify doesn’t show a Stripe, Braintree or Authorize.Net account connected for migrated subscriptions. Vaulting still runs, but the cards may not vault or renew, so email hello@curobi.com. You can ignore it if Authorize.Net is already your store’s main payment gateway.

The CSV columns

Your old app’s export won’t use these names. Map its columns onto the headers below, and delete any columns you don’t need. The only mandatory columns are the eight in the first table, plus the columns for one payment path. Column names aren’t case-sensitive, so ExternalId and externalid both work.

Always required

Every row needs all eight.

ColumnMeaningRules
externalIdThe subscription’s ID in your old appAny unique text, such as src-1001. This is the duplicate key.
variantIdThe Shopify product variant being subscribed toA plain number or gid://shopify/ProductVariant/…. Must be a variant in your store.
quantityUnits per cycleA whole number, 1 or more
currentPricePrice of one unit for one billing cycleA number, 0 or more, such as 12.00. Each cycle charges quantity × currentPrice, plus any deliveryPrice.
currencyCodeCurrency3-letter ISO code, such as USD
intervalBilling unitDAY, WEEK, MONTH or YEAR
intervalCountIntervals between charges1 or more. 2 with WEEK means every 2 weeks.
nextBillingDateWhen the next charge should happenYYYY-MM-DD, after today (UTC). Read Setting the next billing date first.

currentPrice is the price per unit, not the order total. A customer who gets 2 bags at $12 each every month is quantity 2 and currentPrice 12.00. Entering 24.00 would charge them $48.

The frequency is always two columns. “Every month” is MONTH and 1, and “every 6 weeks” is WEEK and 6. Curobi doesn’t read frequency phrases such as “Monthly”, so convert them before you upload.

Payment columns

Fill in the columns for your path.

ColumnForFormat
emailPaths A and CThe customer’s email
customerIdPaths A and C, instead of emailThe Shopify customer ID, or gid://shopify/Customer/…
paymentMethodIdPath Bgid://shopify/CustomerPaymentMethod/…
gatewayPath Cstripe, braintree or authorizeNet
stripeCustomerId / stripePaymentMethodIdStripecus_… / pm_…
braintreeCustomerId / braintreePaymentMethodTokenBraintreeFrom the Braintree Vault
authnetCustomerProfileId / authnetPaymentProfileIdAuthorize.NetThe customer profile ID and the customer payment profile ID, from the Customer Information Manager (CIM)

Tokens are references to a card stored in a gateway’s vault, never card numbers. Curobi never handles card numbers, and no column in the file is meant to hold one.

Optional

ColumnMeaning
address1, address2, city, provinceCode, countryCode, zipThe shipping address. Leave them blank to use the customer’s default address in Shopify. Curobi reads these columns only when address1 is filled in, and then countryCode and zip are required too. Codes are 2 letters, such as US and NY.
firstName, lastName, phoneThe name and phone number on the shipping address
deliveryPriceShipping charged per cycle. Defaults to 0.00.
minCycles / maxCyclesCommitment limits. Whole numbers, 1 or more, with maxCycles no lower than minCycles.
customerIdThe Shopify customer ID or GID. It can replace email on Paths A and C. On Path B it’s a cross-check: the row fails if the card belongs to a different customer.

Most rows can skip the address entirely, because Curobi falls back to each customer’s default address. Fill in the address columns for a customer who has no default address in Shopify, or whose subscription ships somewhere other than that default. Start with address1: a row with a city or zip but no address1 is read as having no address at all, so it quietly falls back to the default address, or fails with No usable shipping address if the customer has none.

Where to find payment IDs

You can’t see raw card numbers anywhere. You often can’t pull vault tokens yourself either, because gateways restrict this for security.

  • paymentMethodId (Path B). This isn’t shown in the Shopify admin. Look for gid://shopify/CustomerPaymentMethod/… in your old app’s export, or get it from Shopify’s Admin API. If you can’t find it, use Path A (email) instead.
  • Stripe. Get cus_… and pm_… from Customers in the Stripe Dashboard, or from the Stripe API. Export them in bulk rather than copying them one by one.
  • Braintree. Get these from the Vault in the Braintree Control Panel, or from the Braintree API.
  • Authorize.Net. Get these from the Customer Information Manager (CIM), or from the Authorize.Net API.

Leaving an outside gateway? The cards live in that gateway’s vault, not Shopify’s. Moving them out usually needs a formal data-export or migration request to the gateway, such as Stripe’s “copy data to another processor”. The gateway account also has to be connected to your Shopify store: see Before you start Path C.

Setting the next billing date

nextBillingDate is the date Curobi first charges the imported subscription. Set it to the date the customer would next have been charged. A wrong date costs the customer money or costs you a cycle:

  • Too early. If the date falls in a cycle the old app has already charged for, the customer pays for that cycle twice.
  • Too late. If the date is a full cycle or more after the last charge, a cycle is skipped and never billed.
  • Today or earlier. The row is rejected. The date must be after today (UTC), so an import never charges anyone straight away.

Since the import doesn’t touch the old app’s subscriptions, also make sure the old app won’t charge the same customers for the same cycle. Shopify recommends pausing billing in the old app while you migrate.

Running it again is safe

externalId is the duplicate key, scoped to your store. Re-uploading the same file never creates a duplicate subscription, and neither does re-running an import that stopped part-way. A row that has already created a subscription is skipped, and the rest are tried again.

This is what makes batching safe, but two things follow from it:

  • Re-importing can’t edit a subscription. If you change a row’s price and upload it again with the same externalId, the subscription isn’t updated. The row is skipped because it has already created a subscription.
  • externalId must be unique across every batch, not just within one file. If you reuse an ID in a later batch for a different subscription, that row is skipped.

When a row fails

A row that fails never stops the others. During Validate it’s marked invalid with a reason. During Import, Curobi creates nothing for it and carries on with the next row. Because nothing was created, running the import again after you fix the row tries it again.

A customer has no saved card (Path A). The row shows “Customer has no usable saved payment method in Shopify’s vault”, grouped under Missing Payment Method. Have the customer add a card in their Shopify customer account and run the import again. Or give that row a paymentMethodId (Path B) or gateway tokens (Path C).

Other reasons you may see:

MessageWhat to do
No Shopify customer found for …The email doesn’t match a customer in your store. Check it, or add the customer in Shopify first.
No usable shipping addressAdd address1, countryCode and zip to the row, or set the customer’s default address in Shopify.
Product variant not foundThe variantId isn’t a variant in your store.
Payment method has been revokedThat card can’t be charged. Give the row a different card.
Payment method is still being processedPath C: run Vault payment methods again until the card is ready.
customerId does not match the payment method’s ownerThe paymentMethodId belongs to a different customer.
Already imported / Repeated externalId in this fileThat externalId has already created a subscription, or appears twice in the file.

Click Download failed rows to get the rows that failed as a CSV, in your own columns plus an Error column. Fix them and upload that file.

Limits worth knowing

  • 100 rows per run. Rows after the 100th aren’t processed. Split a larger book into files of 100 rows or fewer. See 100 rows per run.
  • One product per subscription. Each row has a single variantId, and each row becomes its own subscription. A subscription that holds several products in your old app can’t come across as one multi-product subscription.
  • Three outside gateways. Stripe, Braintree and Authorize.Net are the only ones the importer can bring cards in from, and only the payment methods listed in Before you start Path C.
  • No Shopify Flow “Subscription started” event. An imported subscription has no order it was bought on, so that trigger doesn’t fire for it. See Shopify Flow.

The Subscription Risk Center watches imports in progress. It flags rows that failed to import, and cards that failed to vault or are still waiting, so a stuck migration surfaces without you having to reopen the Import page.

Last updated on