- Use Layer’s Plaid connection - Layer manages the Plaid relationship on your behalf. Best if you don’t already integrate with Plaid.
- Use your own Plaid connection - Keep your existing Plaid relationship and grant Layer access to the data.
Use Layer’s Plaid connection
Your customers link their accounts through a Layer-powered flow, and Layer handles credential management, connection health, and data ingestion. You can present the linking flow in two ways:Embedded components
Drop Layer’s prebuilt, white-labeled account linking component into your app.
Custom Plaid Link UI
Build your own account linking experience on top of Plaid Link, powered by Layer’s Plaid connection.
Use your own Plaid connection
If your platform already integrates with Plaid, you don’t need to ask customers to link their accounts again. Grant Layer access to your existing Plaid data using processor tokens.1
Create a processor token
Link a customer’s bank account with Plaid as usual, obtaining an
access_token. Then create a processor token for each account via Plaid’s /processor/token/create endpoint, specifying layer as the processor.Request
2
Attach the tokens to a business
Pass the processor tokens when creating a business, or update an existing business with them. Layer begins ingesting data from the associated accounts immediately.
Request
Unlinking bank accounts
When a customer disconnects a Plaid link, Layer removes the connection with Plaid and archives the linked item and all of its accounts. What happens to the account’s transactions depends on whether they have been categorized onto the ledger:1
Categorized transactions stay on the ledger
Transactions that have already been categorized, whether categorized, split, or matched to an existing invoice, bill, payout, transfer, or manual journal entry, are not affected. Their ledger entries remain intact, so they continue to appear in the customer’s books and reports exactly as before.
2
Uncategorized transactions are archived
Transactions that have not yet been categorized, such as those pending, awaiting Layer review, or ready for input, are archived. Archived transactions are no longer visible to the customer and are excluded from balances and reports, but the underlying records are retained.
Categorized transactions are preserved because once a transaction has been posted to the ledger, its source bank transaction must remain in-system: the ledger entry depends on it, and removing it would change the customer’s financial reports. Unlinking therefore archives only uncategorized transactions. Users are not allowed to remove transactions from Plaid accounts. Users are only allowed to remove transactions from custom accounts, where transactions are either from an CSV upload or manually recorded expenses or income.Unlinking also calls Plaid’s
/item/remove, which invalidates the item’s access token. The disconnected Plaid item cannot be reconnected. To resume syncing, the customer must complete a new Plaid Link flow, which creates a new item. Transactions that Plaid had already reported to Layer are retained in the archived state described above.