# Migrating from Braintree

Learn how to move your stored cards, bank accounts, and customer records from Braintree to Finix. After the import, you can keep charging returning buyers without asking them to re-enter their payment details.

## Migration overview

To migrate your Braintree data to Finix:

1. [Integrate with Finix](#step-1-integrate-with-finix) and set up your account.
2. [Prepare your data](#step-2-prepare-your-data) in the Braintree Control Panel.
3. [Contact Finix](#step-3-contact-finix) to start the migration.
4. [Request a vault export from Braintree](#step-4-request-a-vault-export-from-braintree) and include Finix on the request.
5. [Finix imports your data](#step-5-finix-imports-your-data) and creates Payment Instruments and Identities.
6. [Verify the migrated data](#step-6-verify-the-migrated-data) with the mapping file Finix sends you.


## Data you can migrate

Braintree exports the cards and customer records saved in your vault. Some data stays with Braintree.

| Data  | Migrates  | Details  |
|  --- | --- | --- |
| Credit and debit cards | Yes | Braintree exports the card number, cardholder name, expiration date, and billing address. Finix creates a Payment Instrument for each card. |
| Customer records | Yes | Braintree exports each customer's name, email, phone, and company. Finix creates an Identity for each customer. |
| Bank accounts (ACH) | Yes, with extra terms | Braintree exports ACH payment methods only after you agree to its Data Protection Agreement and update your privacy policy. |
| Apple Pay and Google Pay | No | Braintree excludes digital wallet payment methods because their tokens can't move between providers. Buyers add them again at their next checkout. |
| Subscriptions and plans | No | Braintree can't export subscriptions. Download a report of your plans and subscriptions, then recreate them in Finix. |
| Transaction history | No | Braintree can't export transactions. Keep your Braintree reports for your records. |
| Card security codes (CVV) | No | PCI DSS doesn't allow processors to store CVVs after authorization, so no processor can export them. |


For the full list of exclusions, see Braintree's [Data Migration overview](https://developer.paypal.com/braintree/articles/get-started/data-migration/overview).

## Step 1: Integrate with Finix

To set up your Finix account, see the [Quickstarts](/guides/getting-started/quickstarts). For platforms and marketplaces, see the [Platform Quickstart](/guides/platform-payments/platform-quickstart).

### Tokenizing cards and bank accounts

Like Braintree's Drop-in UI and Hosted Fields, Finix has libraries that collect payment details without the sensitive data touching your servers.

- See [Tokenization Forms](/guides/online-payments/payment-tokenization/tokenization-forms) to accept payment details on the web.
- See [iOS](/guides/online-payments/payment-tokenization/mobile-tokenization-ios) or [Android](/guides/online-payments/payment-tokenization/mobile-tokenization-android) mobile tokenization to accept payment details in your mobile app.
- See [Raw Card Data](/guides/online-payments/payment-tokenization/handling-raw-card-data) if you have a Level 1 PCI-compliant card data environment (CDE).


Set up tokenization early. You need it for buyers whose payment details don't migrate, such as digital wallets.

### Low-code products

Finix has low-code products that replace common Braintree workflows.

- **[Payment Links](/low-code-no-code/payment-links):** Send buyers a link to complete a payment by email, text, web page, or QR code.
- **[Subscriptions](/guides/subscriptions/subscriptions-quickstart):** Recreate your Braintree plans and subscriptions as recurring payments in Finix.


### Braintree to Finix resource mapping

| Braintree object  | Finix resource  | Notes  |
|  --- | --- | --- |
| Customer | Identity | Stores the buyer's name, email, and phone number. |
| Credit Card or Payment Method | Payment Instrument | Stores the card or bank account. Finix links each Payment Instrument to an Identity. |
| Transaction | Authorization or Transfer | Use an Authorization to authorize and capture later. Use a Transfer to charge in one step. |
| Plan and Subscription | Subscription Plan and Subscription | Recreate these in Finix. Braintree doesn't export them. |


### Buyer data mappings

The Braintree export is a CSV with one row per card. These columns map to fields on the Finix Identity.

| Braintree export column  | Finix `Identity` field  | Description  |
|  --- | --- | --- |
| `id` | `external_customer_id` in the mapping file | The Braintree customer ID. |
| `first_name` | `entity.first_name` | The buyer's first name. |
| `last_name` | `entity.last_name` | The buyer's last name. |
| `email` | `entity.email` | The buyer's email address. |
| `phone` | `entity.phone` | The buyer's phone number. |


## Step 2: Prepare your data

Review your vault in the Braintree Control Panel before you request the export.

- Confirm customer names, emails, and billing addresses are accurate.
- Decide on the export scope. Braintree exports either your entire vault or a list of customer IDs you provide.
- Download a report of your plans and subscriptions so you can recreate them in Finix.


Braintree allows two exports
Braintree limits each migration to two exports. Use the first for most of your customers and the second for customers added during the switchover. Plan your cutover date before you request the first export.

### Platforms and marketplaces

If you onboard sellers, you also need to migrate their business details, such as legal name, address, tax ID, and merchant category code (MCC). For the process, see [Migrating Customer Data](/additional-resources/developers/migrating-data-to-finix/migrating-customer-data).

## Step 3: Contact Finix

When you're ready to migrate, contact your Finix point of contact or the [Finix Support team](mailto:support@finix.com). Finix then starts the technical preparation for your import.

## Step 4: Request a vault export from Braintree

Braintree requires the Authorized Signer on your Braintree gateway account to approve every data migration request.

1. Submit a request through [Braintree's Get Help form](https://developer.paypal.com/braintree/help/Migrations) with the Migrations issue selected. Include your full name, business name, business email, and Braintree Merchant ID.
2. State that you're exporting your vault to migrate to Finix, and include your Finix point of contact or Finix Support on the request.
3. Provide Finix's PCI attestation. Braintree requires proof of the receiving provider's PCI compliance before it sends data. Finix's most recent PCI DSS Attestation of Compliance (AoC) is [available by request](/guides/managing-operations/security-compliance) under a signed non-disclosure agreement with Finix.
4. Provide Finix's public encryption key when Braintree asks for it. See [PGP Key](/additional-resources/developers/migrating-data-to-finix/pgp-key).
5. If you're exporting ACH bank accounts, accept Braintree's Data Protection Agreement and update your privacy policy as Braintree requests.


After Braintree approves the request:

- Braintree encrypts the export with Finix's PGP key and sends it to Finix as a CSV file.
- Braintree confirms a timeline estimate once it has everything it needs. Braintree doesn't charge a fee for data migrations.


Share any details Braintree sends you with your Finix point of contact or the [Finix Support team](mailto:support@finix.com).

## Step 5: Finix imports your data

When Finix receives the file from Braintree:

- Finix decrypts the payment data in a PCI-compliant environment.
- Finix creates Payment Instruments and Identities from the exported data.
- If any data can't be used, Finix explains the issue and works with you and Braintree to resolve it.


It can take anywhere from a few days to several weeks for your original processor to transfer your payment data to Finix. Build this time into your migration plan.

Account Updater is on by default
Finix automatically enables [Account Updater](/guides/after-the-payment/account-updater) on imported tokens.

## Step 6: Verify the migrated data

When the import is complete, Finix sends you a CSV mapping file. It lists each Braintree token next to the new Finix Payment Instrument and Identity.

| Field  | Description  |
|  --- | --- |
| `external_customer_id` | The Braintree customer `id`. |
| `external_token_id` | The Braintree `credit_card.token`. |
| `finix_identity_id` | The ID of the new Finix Identity. |
| `finix_instrument_id` | The ID of the new Finix Payment Instrument. |
| `successful` | Whether Finix created the Payment Instrument. When `false`, check `error_msg` and contact the buyer to collect their payment details again. |
| `is_expired` | Whether the card is expired. |


For every field in the file and an example, see [CSV output](/additional-resources/developers/migrating-data-to-finix/migrating-payment-data#csv-output).

Use the file to replace Braintree tokens in your database with Finix IDs. Then start processing payments with the new Payment Instruments.

## API mappings

Replace Braintree API calls with the equivalent Finix API requests.

| Task  | Braintree  | Finix  |
|  --- | --- | --- |
| Create a buyer | `Customer.create` | POST /identities |
| Save a card or bank account | `PaymentMethod.create` | POST /payment_instruments |
| Authorize a payment | `Transaction.sale` | POST /authorizations |
| Capture an authorization | `Transaction.submitForSettlement` | PUT /authorizations/{id} |
| Void an authorization | `Transaction.void` | PUT /authorizations/{id} |
| Charge in one step | `Transaction.sale` with `submitForSettlement` | POST /transfers |
| Refund a payment | `Transaction.refund` | POST /transfers/{id}/reversals |
| Create a subscription | `Subscription.create` | POST /subscriptions |
| Receive event notifications | Braintree webhooks | [Finix webhooks](/additional-resources/developers/webhooks/integrating-into-webhooks) |


## Learn more

Migrating Payment Data
See the general token migration process and every field in the mapping file.

Migrating Customer Data
Migrate seller records and onboard them to Finix.

PGP Key
Get the Finix PGP key your processor uses to encrypt your data.

Account Updater
Keep imported cards up to date when buyers get new cards.