Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

plaid

Package Overview
Dependencies
Maintainers
12
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plaid

A node.js client for the Plaid API

  • 30.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
12
Created

What is plaid?

The Plaid npm package is a client library for interacting with the Plaid API, which allows developers to connect their applications to users' bank accounts and financial data. It provides a range of functionalities including retrieving account balances, transaction histories, and verifying account ownership.

What are plaid's main functionalities?

Retrieve Account Balances

This feature allows you to retrieve the current balance of all accounts associated with a given access token.

const plaid = require('plaid');
const client = new plaid.Client({
  clientID: 'your_client_id',
  secret: 'your_secret',
  env: plaid.environments.sandbox
});

client.getBalance('access_token', (error, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log(response.accounts);
  }
});

Retrieve Transaction Histories

This feature allows you to retrieve transaction histories for all accounts associated with a given access token within a specified date range.

const plaid = require('plaid');
const client = new plaid.Client({
  clientID: 'your_client_id',
  secret: 'your_secret',
  env: plaid.environments.sandbox
});

client.getTransactions('access_token', 'start_date', 'end_date', (error, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log(response.transactions);
  }
});

Verify Account Ownership

This feature allows you to verify account ownership and retrieve account and routing numbers for accounts associated with a given access token.

const plaid = require('plaid');
const client = new plaid.Client({
  clientID: 'your_client_id',
  secret: 'your_secret',
  env: plaid.environments.sandbox
});

client.getAuth('access_token', (error, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log(response.accounts);
  }
});

Other packages similar to plaid

Keywords

FAQs

Package last updated on 14 Nov 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc