# Import subscribers

Move subscribers you already bill elsewhere into GlobalyMint, with their saved cards, without charging anyone at import.

> **Not released yet.** Planned for Phase 7 of the release; confirm before relying on it.
>
>
> The import API and the `mint-import` command are part of this release but are not available yet. Everything on this page describes how they are specified to work and must be confirmed before launch.
>
> ## What an import does
>
> An import creates a subscription for each subscriber you already have, attaches their existing Stripe customer and default payment method, and sets the current period to end on their next charge date. No opening invoice is created, so nothing is charged at import. The first charge is the next renewal.
>
> Events caused by an import carry `"imported": true`, so your app can skip welcome emails.
>
> ## Run a dry run first
>
> A dry run reads your file, checks every row and prints what would happen. It changes nothing.
>
> ```bash title="terminal"
> npx mint-import subscribers.csv --stripe-account acct_… --dry-run
> ```
>
> The report lists how many rows are ready, which rows cannot be imported and why (for example no saved card on the Stripe customer, or a plan code that does not exist), and the first charge date and amount for each subscriber.
>
> Fix the rows it rejects, then run the command again without `--dry-run`.
>
> ## The API
>
> The command calls the same API you can call yourself. Importing needs a full-access key.
>
> - `POST /api/v1/imports` with `dry_run` and `rows`, in chunks of up to 500 rows, with an `Idempotency-Key` for each chunk. It returns a job id.
> - `GET /api/v1/imports/{id}` shows progress and the rows that failed.
>
> The work runs in the background, not in the request.
>

## Before you import

These steps work today:

1. Connect the Stripe account that holds your subscribers' cards under Settings › Payments, in live mode.
2. Create your products and plans in live mode, with the same plan codes your export uses.
3. Add your live webhook endpoint, so your app hears about the first renewals.
