# Migrating from Stax

Learn how to move your stored payment methods and customer records from Stax (formerly Fattmerchant) 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 Stax 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 Stax Pay.
3. [Contact Finix](#step-3-contact-finix) to start the migration.
4. [Request a payment data export from Stax](#step-4-request-a-payment-data-export-from-stax) 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

Stax stores each buyer as a customer with one or more payment methods. Stax doesn't publish its export process, so confirm the scope of your export with Stax Support.

| Data  | Migrates  | Details  |
|  --- | --- | --- |
| Stored cards | Request from Stax | Card numbers are only available through a payment data export from Stax. Finix creates a Payment Instrument for each card. |
| Stored bank accounts (ACH) | Request from Stax | Finix imports bank accounts as Payment Instruments. Ask Stax to include bank payment methods in your export. |
| Customer records | Yes | You can export customer details yourself from Stax Pay. Finix creates an Identity for each customer. |
| Scheduled invoices | Confirm with Stax | Ask Stax whether it can export your schedules. Plan to recreate them in Finix. |
| Transaction history | No | Keep your Stax 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. |


## 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 Stax.js, 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.

### Low-code products

Finix has low-code products that replace common Stax 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 scheduled invoices as recurring payments in Finix.


### Stax to Finix resource mapping

| Stax object  | Finix resource  | Notes  |
|  --- | --- | --- |
| Customer | Identity | Stores the buyer's name, email, phone number, and address. |
| 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. |
| Scheduled invoice | Subscription Plan and Subscription | Recreate these in Finix. |


### Buyer data mappings

These Stax customer fields map to fields on the Finix Identity.

| Stax customer field  | Finix `Identity` field  | Description  |
|  --- | --- | --- |
| `id` | `external_customer_id` in the mapping file | The Stax customer ID. |
| `firstname` | `entity.first_name` | The buyer's first name. |
| `lastname` | `entity.last_name` | The buyer's last name. |
| `email` | `entity.email` | The buyer's email address. |
| `phone` | `entity.phone` | The buyer's phone number. |
| `address_1` | `entity.personal_address.line1` | Line one of the buyer's address. |
| `address_2` | `entity.personal_address.line2` | Line two of the buyer's address. |
| `address_city` | `entity.personal_address.city` | The buyer's city. |
| `address_state` | `entity.personal_address.region` | The buyer's state. |
| `address_zip` | `entity.personal_address.postal_code` | The buyer's ZIP code. |
| `address_country` | `entity.personal_address.country` | The buyer's country as a three-letter code. |


## Step 2: Prepare your data

Review your customers in Stax Pay before you request the export.

- Confirm customer names, emails, and addresses are accurate.
- Remove customers you no longer charge.
- Export your customer list. In Stax Pay, open the **Customers** list and click **Export** to download a CSV. This file doesn't include card or bank account numbers. For details, see Stax's [Exporting Customer Data](https://docs.staxpayments.com/docs/exporting-customer-data) guide.
- Make a list of your scheduled invoices so you can recreate them in Finix.


### Platforms and marketplaces

If you process payments for multiple 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 payment data export from Stax

Stax doesn't publish a self-serve export for card data. Contact Stax Support to request one.

1. Contact Stax Support and request an export of your stored payment methods to Finix. Include your Finix point of contact or Finix Support on the request.
2. Provide Finix's PCI attestation if Stax asks for it. 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.
3. Provide Finix's PGP key so Stax can encrypt the export. See [PGP Key](/additional-resources/developers/migrating-data-to-finix/pgp-key).


Share any details Stax 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 Stax:

- 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 Stax 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 Stax payment method next to the new Finix Payment Instrument and Identity.

| Field  | Description  |
|  --- | --- |
| `external_customer_id` | The Stax customer ID. |
| `external_token_id` | The Stax payment method ID. |
| `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 Stax payment method IDs in your database with Finix IDs. Then start processing payments with the new Payment Instruments.

## API mappings

Replace Stax API requests with the equivalent Finix API requests.

| Task  | Stax  | Finix  |
|  --- | --- | --- |
| Create a buyer | `/customer` | POST /identities |
| Save a card or bank account | `/payment-method` | POST /payment_instruments |
| Authorize a payment | `/charge` with `pre_auth` set to `true` | POST /authorizations |
| Capture an authorization | `/transaction/{id}/capture` | PUT /authorizations/{id} |
| Void an authorization | `/transaction/{id}/void` | PUT /authorizations/{id} |
| Charge in one step | `/charge` | POST /transfers |
| Refund a payment | `/transaction/{id}/refund` | POST /transfers/{id}/reversals |
| Schedule recurring payments | `/invoice/schedule` | POST /subscriptions |


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