Accounts and the account-level products: cached accounts, real-time balance, Auth (account and routing numbers) and Identity (owner names, emails, phones, addresses). Auth and Identity return PII: don't log the responses, and store account numbers encrypted.
Functions
get-accounts
fn (access-token: Str): Map
fn (access-token: Str, options: Map?): Map
fn (access-token: Str, options: Map?, opts: Map): Map
POST /accounts/get: the Item's accounts with cached balances (free; may
be hours old). Options: account_ids. Returns {accounts, item, request_id}.
Example
access-token ::hot::ctx/get("plaid.access-token")
out ::plaid::accounts/get-accounts(access-token, {account_ids: ["acc_123"]})
map(out.accounts, %.name)
get-auth
fn (access-token: Str): Map
fn (access-token: Str, options: Map?): Map
fn (access-token: Str, options: Map?, opts: Map): Map
POST /auth/get: account and routing numbers (numbers.ach, eft,
international, bacs) for ACH and similar transfers. Options:
account_ids. The response is sensitive: never log it.
Example
access-token ::hot::ctx/get("plaid.access-token")
out ::plaid::accounts/get-auth(access-token)
out.numbers.ach
get-balances
fn (access-token: Str): Map
fn (access-token: Str, options: Map?): Map
fn (access-token: Str, options: Map?, opts: Map): Map
POST /accounts/balance/get: real-time balances, fetched from the
institution (slower, billed per call). Options: account_ids,
min_last_updated_datetime (required for some institutions that only
serve cached balances, as an ISO 8601 timestamp).
Example
access-token ::hot::ctx/get("plaid.access-token")
out ::plaid::accounts/get-balances(access-token)
map(out.accounts, %.balances.available)
get-identity
fn (access-token: Str): Map
fn (access-token: Str, options: Map?): Map
fn (access-token: Str, options: Map?, opts: Map): Map
POST /identity/get: account owners' names, emails, phone numbers and
addresses as the institution holds them. Options: account_ids. PII:
never log it.
Example
access-token ::hot::ctx/get("plaid.access-token")
out ::plaid::accounts/get-identity(access-token)
map(out.accounts, %.owners)