# Plaid Integration

![Plaid Bank Accounts](/assets/plaid.4853ed4ec356b78bdf719153759557101b000816f50ba0e97146d9b7d58d0622.fec90461.svg)

Finix and Plaid have partnered to let you add your customers' bank accounts to Finix's platform seamlessly and securely. Plaid instantly verifies bank account existence and ownership, providing a fast and secure way to board your customers onto Finix.

Finix offers multiple ways to add bank accounts with Plaid:

- Add bank accounts with an existing Plaid Account
- Use Finix's Hosted Onboarding Forms for sellers, which have Plaid Link embedded by default


## Example Use Cases

You can use Finix `payment_instruments` connected and verified with Plaid for:

- **[ACH Direct Debits](/guides/online-payments/bank-payments/ach-direct-debits):** debit buyer bank accounts for goods and services
- **[Bank Payouts](/guides/payouts/bank-payouts):** send money to recipients
- **[Onboarding Sellers](/guides/platform-payments/onboarding-sellers) and [Recipients](/guides/payouts/bank-payouts/):** onboard sellers and recipients with our APIs or onboarding forms


This guide explains how Plaid fits into those Finix use cases. Once you have a specific use case in mind, please refer to its respective guide to understand its full process (for example, how to [onboard a seller](/guides/platform-payments/onboarding-sellers)).

## Using Your Plaid Account

This section of the guide is for Finix customers who have existing Plaid accounts and want to use Finix for one of the payments use cases above. If you do not have a Plaid account and would like a referral to Plaid, please email `sales@finix.com`. A Finix Sales Representative will assist you.

### Step 1: Embed Plaid Link Into Your Application

The first step is embedding [Plaid Link](https://plaid.com/docs/link/) into your application. Link is a client-side experience that lets your customers connect their bank accounts securely and seamlessly through Plaid. After Link, you can use your customers' bank account connections to create Plaid `processor_tokens` and, ultimately, Finix `payment_instruments`.

To guide your integration, we recommend familiarizing yourself with [Plaid's guide to the Plaid + Finix integration](https://plaid.com/docs/auth/partnerships/finix/). Plaid's guide has information on how to embed Plaid Link into your application and create Plaid `processor_tokens`.

Creating the Plaid Link Token
Finix uses Plaid's Auth and Identity endpoints to tokenize Payment Instruments from Plaid tokens. You must include both `auth` and `identity` in the Plaid Link Token `products` array.

### Step 2: Create a Plaid Processor Token for the Finix Processor

With Plaid Link embedded into your application, you can exchange your customers' Plaid `access_tokens` for `processor_tokens` with `processor: finix`. Finix uses `processor_tokens` to get and save your customers' bank account details in the next step.


```shell Plaid Processor Token Request
curl "https://sandbox.plaid.com/processor/token/create" \
    -H 'Content-Type: application/json' \
    -X POST \
    -d '{
        "client_id": "${PLAID_CLIENT_ID}",
        "secret": "${PLAID_SECRET}",
        "access_token": "${ACCESS_TOKEN}",
        "account_id": "${ACCOUNT_ID}",
        "processor": "finix"
    }'
```


```json Plaid Processor Token
{
    "processor_token": "processor-sandbox-0asd1-a92nc",
    "request_id": "kxiMB5rN03wiLMD"
}
```

### Step 3: Create a Finix Payment Instrument

Now, you can use the Plaid `processor_token` to create a Finix `payment_instrument`:

Example
API Definition
Example
Payment Instrument - Plaid Bank Account

```json Payment Instrument - Plaid Bank Account
{
  "id": "PItvWj6QGrLbDcdLoovPhD8y",
  "created_at": "2024-08-02T04:41:32.36Z",
  "updated_at": "2024-08-02T04:41:32.36Z",
  "application": "APrMqXwT4CE9sRjtGaHcYJN7",
  "created_via": "API",
  "currency": "USD",
  "disabled_code": null,
  "disabled_message": null,
  "enabled": true,
  "fingerprint": "FPRxAutj19xH1AH6ykGx2dwa7",
  "identity": "IDeA9DMHJooeBhA5YotF7g1u",
  "instrument_type": "BANK_ACCOUNT",
  "account_type": "BUSINESS_CHECKING",
  "bank_account_validation_check": "VALID",
  "bank_code": "011401533",
  "country": "USA",
  "institution_number": null,
  "masked_account_number": "XXXXXXXXXXX0000",
  "name": "Alberta Bobbeth Charleson",
  "transit_number": null,
  "tags": {},
  "third_party": "PLAID",
  "third_party_token": "processor-sandbox-1487e3ec-fd86-40e2-b8d3-c8f260b4340c",
  "type": "BANK_ACCOUNT",
  "_links": {
    "self": {
      "href": "https://finix.sandbox-payments-api.com/payment_instruments/PItvWj6QGrLbDcdLoovPhD8y"
    },
    "authorizations": {
      "href": "https://finix.sandbox-payments-api.com/payment_instruments/PItvWj6QGrLbDcdLoovPhD8y/authorizations"
    },
    "transfers": {
      "href": "https://finix.sandbox-payments-api.com/payment_instruments/PItvWj6QGrLbDcdLoovPhD8y/transfers"
    },
    "verifications": {
      "href": "https://finix.sandbox-payments-api.com/payment_instruments/PItvWj6QGrLbDcdLoovPhD8y/verifications"
    },
    "application": {
      "href": "https://finix.sandbox-payments-api.com/applications/APrMqXwT4CE9sRjtGaHcYJN7"
    },
    "identity": {
      "href": "https://finix.sandbox-payments-api.com/identities/IDeA9DMHJooeBhA5YotF7g1u"
    }
  }
}
```

API Definition
This diagram summarizes that process across the Plaid and Finix platforms:

![Alt text](/assets/plaid-overview.2acc4375eb77b30e145f3593a8c5b176c44f6cd5d06a9c8f1e7cb359e55e5463.28b10c14.svg)

### Migrating Plaid Access Tokens

If you have previously connected your customers' bank accounts with Plaid, you can migrate those bank account connections onto Finix's platform. To do this, you will need to use Plaid's `/processor/token/create` endpoint to exchange each customer's Plaid `access_token` for a `processor_token` with `processor: finix`.

For more information on creating the `processor_token`, please see [Plaid's guide to the Plaid + Finix integration](https://plaid.com/docs/auth/partnerships/finix/).

## Using Finix's Plaid Account

By default our finix.js JavaScript library creates Bank Accounts using Plaid. All you need to do is implement finix.js and Finix handles the heavy lifting of using Plaid.

Your responsibility will be claiming the `TOKEN` generated by Finix.js with your authenticated credentials in the Step 2 below.

### Step 1 - Integrate our finix.js library and get a `TOKEN`

Our finix.js library automatically enables Plaid for all `BANK_ACCOUNT` creation. This is to minimize returns and fraud.

You will get a `TOKEN` back from the `finix.js`.


```json Example Token Response
{
  "id" : "TKeD6uad8xZc52Rqg1VhvSBw",
  "created_at" : "2025-06-10T00:31:53.54Z",
  "updated_at" : "2025-06-10T00:31:53.54Z",
  "currency" : "USD",
  "expires_at" : "2025-06-11T00:31:53.54Z",
  "fingerprint" : "FPRrcobjtdU98gr4sjiqYR1Qg",
  "instrument_type" : "BANK_ACCOUNT"
}
```

Once you've handled the response, store the ID to utilize the token in the future. You will eventually send the `token` ID from your front-end client to your back-end server.


```javascript Sample Javascript workflow
    const tokenData = res.data || {};     // get token ID from response
    const token = tokenData.id;
    function handleResponse(response) // This would be your custom logic
```

Many customers implement additional logic after a buyer enters their payment information, using the returned `token`. For example, some customers choose to implement a different workflow depending if a `PAYMENT_CARD` or `BANK_ACCOUNT` is returned by finix.js.

### Step 2 - Claim the `TOKEN` using your authenticated credentials

Now that you have the `token`, you should send this to your backend. You will need this ID to eventually do an authenticated call to Finix in the next step.

Token usage and expiration
Tokens should be used to create a `Payment Instrument` right away in the next step. Tokens expire within 30 minutes and cannot be used after expiring.


```Sample Javascript workflow
fetch('/your/backend', {
  method: 'POST',
  headers: { 'Content-Type': 'application/json' },
  body: JSON.stringify({ token: token }),
})
```

## Seller Onboarding

If you prefer a low-code or no-code solution, you can use [Finix's Onboarding Forms](/guides/platform-payments/onboarding-sellers/seller-onboarding-forms) to let your sellers connect their bank accounts with Plaid during the Finix onboarding process. Finix's Onboarding Forms let sellers on your platform choose whether to connect their bank accounts through Plaid Link or manually, giving them the flexibility to pick the option that works best for them.

![Alt text](/assets/plaid-onboarding-forms.454ffcd1c766aed83e2853aaf35f970e68870eedb0c6c9c14449a885a3d7603a.08ff7529.png)

## Verifying Bank Accounts

When you create `payment_instruments` with Plaid `processor_tokens`, Finix uses Plaid Auth to securely get and save the account and routing numbers. In addition, Finix uses Plaid Identity to verify the ownership of the bank account, which is critical for mitigating fraud and protecting our customers.

Bank accounts connected and verified with Plaid will have `bank_account_validation_check: VALID`:


```json Plaid-Connected Payment Instrument
{
    "id": "PI3AbkuRR1JbT5kPiGQCXvD9",
    "created_at": "2022-10-11T01:42:53.29Z",
    "updated_at": "2022-10-11T01:42:53.29Z",
    "application": "APgPDQrLD52TYvqazjHJJchM",
    "created_via": "API",
    "currency": "USD",
    "enabled": true,
    "third_party": "PLAID",
    "third_party_token": "processor-sandbox-0asd1-a92nc",
    "fingerprint": "FPRd5moHxL3Ltuvk4cczxetCg",
    "identity": "IDpYDM7J9n57q849o9E9yNrG",
    "instrument_type": "BANK_ACCOUNT",
    "account_type": "PERSONAL_CHECKING",
    "bank_account_validation_check": "VALID", // [!code highlight]
    "bank_code": "123123123",
    "country": "USA",
    "masked_account_number": "XXXXX3123",
    "name": "John Doe",
    "tags": {},
    "type": "BANK_ACCOUNT",
    "_links": {}
}
```

## Plaid Benefits

Connecting bank accounts with Plaid is advantageous by offering:

- **Better customer experience:** Plaid lets your customers add their bank account details simply by logging into their bank account, rather than providing their bank account and routing numbers manually
- **Faster onboarding:** Plaid verifies bank account existence and ownership instantly, providing the fastest onboarding experience for your customers
- **Increased security**: Plaid limits the need for Finix customers to handle bank account data directly, which is preferable from a security standpoint


## Supported Bank Accounts

Finix supports U.S. and Canadian Plaid bank account connections. Finix uses Plaid's Auth API to create Payment Instruments with the following details.

### U.S. bank accounts

- Account Number
- Routing Number


### Canadian bank accounts

- Account Number
- Transit Number
- Institution Number