Plaid bindings: bank account data for fintech builders. Covers the Link token flow, Items, accounts, real-time balance, Auth, Identity, transactions (sync, get, refresh, recurring), institutions, investments, liabilities, sandbox helpers and webhook verification.
Setup: context variables
plaid.client-idandplaid.secretplaid.env:"sandbox"(default) or"production"plaid.version: optional, overrides thePlaid-Versionheader
Plaid authenticates with the client id and secret in the request
body; this package injects them. Every API-calling function also takes
them per call in a trailing opts Map (see ::plaid::api).
Quick start
::link ::plaid::link
::transactions ::plaid::transactions
// 1. Create a Link token; your frontend runs Plaid Link with it
link ::link/create-link-token("user-42", "My App", {products: ["transactions"]})
// 2. Exchange the public token Link returns for an access token
tokens ::link/exchange-public-token("public-sandbox-123")
// 3. Pull everything new since the stored cursor
sync ::transactions/sync-all-transactions(tokens.access_token, null)
Values
DEFAULT_ENV
DEFAULT_ENV: Str "sandbox"
ENVIRONMENTS
ENVIRONMENTS: Map {
sandbox: "https://sandbox.plaid.com",
production: "https://production.plaid.com"
}
PLAID_VERSION
PLAID_VERSION: Str "2020-09-14"