Plaid icon

Plaid

Access the Plaid API - No Dependencies

Actions10

Transaction → Sync

AI-generated

Overview

The node integrates with the Plaid API to synchronize transaction data for a user’s bank account. Specifically, the Transaction - Sync operation allows incremental synchronization of new, modified, or removed transactions using a cursor-based approach. This is useful for keeping financial records up-to-date without repeatedly fetching all historical data.

Common scenarios include:

  • Continuously updating a financial dashboard with the latest transactions.
  • Incrementally syncing transactions into accounting or budgeting software.
  • Detecting changes in transaction history for fraud monitoring or reconciliation.

Example: A user can provide their Plaid access token and an optional cursor from a previous sync. The node fetches all new, updated, and deleted transactions since that cursor, returning them with metadata to manage further incremental updates.

Properties

Name Meaning
Access Token The Plaid access token associated with the user's bank account. Required for authentication.
Cursor A string cursor used for incremental sync. Leave empty for the initial full sync; otherwise, use the cursor returned from the last sync to get only changes since then.

Output

The output is an array of JSON objects representing transactions with additional sync metadata:

  • Each transaction object includes standard transaction fields as provided by Plaid (e.g., amount, date, name).
  • Each transaction also has a sync_status field indicating whether it was "added", "modified", or "removed" since the last sync.
  • The output includes two additional fields on each transaction item:
    • next_cursor: The cursor string to be used for the next incremental sync call.
    • has_next: A boolean indicating if there are more changes available beyond this batch.

This structure enables efficient incremental synchronization by tracking changes and managing cursors.

Dependencies

  • Requires an API key credential with client ID and secret for authenticating with the Plaid API.
  • The node uses HTTP requests to communicate with Plaid endpoints.
  • No additional external dependencies are required beyond valid Plaid credentials.
  • The environment (sandbox, development, production) is determined by the credentials configuration.

Troubleshooting

  • Invalid or expired access token: The node requires a valid Plaid access token. If the token is invalid or revoked, the API will return an error. Ensure the token is current and correctly entered.
  • Cursor issues: Providing an incorrect or outdated cursor may cause incomplete or repeated data. Use the next_cursor value returned from the last successful sync.
  • API errors: Errors from Plaid API include error codes and messages. Common causes include rate limits, invalid parameters, or network issues. Review the error message for details.
  • Network connectivity: Ensure the n8n instance has internet access to reach Plaid endpoints.
  • Permission scopes: The access token must have permissions for transaction sync operations.

If the node throws an error, check the error message for Plaid API error codes and verify credentials and input parameters.

Links and References

Discussion