๐Ÿš€ Socket Launch Week ๐Ÿš€ Day 5: Introducing Socket Fix.Learn More โ†’
Socket
Sign inDemoInstall
Socket

plaid

Package Overview
Dependencies
Maintainers
12
Versions
166
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

26.0.0
Source
npm
Version published
Weekly downloads
213K
1.24%
Maintainers
12
Weekly downloads
ย 
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

plaid

FAQs

Package last updated on 05 Jul 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