Accounts, their balances and statements, and Account Numbers (the routing and account numbers that receive money into an account).
Account Number objects contain the full account_number and
routing_number. Treat them as sensitive: don't log those responses,
and show customers only the last four digits.
Functions
close-account
fn (account-id: Str): Map
fn (account-id: Str, opts: Map): Map
POST /accounts/{account_id}/close: close an Account. Its balance must be zero. Irreversible; agents should get a person's approval first.
create-account
fn (params: Map): Map
fn (params: Map, opts: Map): Map
POST /accounts: open an Account. params needs name; optional
entity_id, informational_entity_id, program_id, funding
("deposits" or "loan") and loan: {credit_limit, ...}.
Example
::increase::accounts/create-account({name: "Operating", entity_id: "entity_n8y8tnk2p9339ti393yi"},
{idempotency-key: "account-operating"})
create-account-number
fn (params: Map): Map
fn (params: Map, opts: Map): Map
POST /account_numbers: issue a new account number on an Account.
params needs account_id and name; optional inbound_ach: {debit_status: "allowed" | "blocked"} and inbound_checks: {status: "allowed" | "check_transfers_only"}. The response holds the full
account and routing numbers: don't log it.
get-account
fn (account-id: Str): Map
fn (account-id: Str, opts: Map): Map
GET /accounts/{account_id}: retrieve an Account.
get-account-number
fn (account-number-id: Str): Map
fn (account-number-id: Str, opts: Map): Map
GET /account_numbers/{account_number_id}: retrieve an Account Number (includes the full account and routing numbers).
get-account-statement
fn (account-statement-id: Str): Map
fn (account-statement-id: Str, opts: Map): Map
GET /account_statements/{account_statement_id}: retrieve an Account Statement.
get-balance
fn (account-id: Str): Map
fn (account-id: Str, at-time: Str?): Map
fn (account-id: Str, at-time: Str?, opts: Map): Map
GET /accounts/{account_id}/balance: {account_id, current_balance, available_balance, loan} in the minor unit (cents). Pass at-time
(ISO 8601) for the balance at a past moment.
Example
balance ::increase::accounts/get-balance("account_in71c4amph0vgo2qllky")
balance.available_balance // => 100
list-account-numbers
fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map
GET /account_numbers: one page of Account Numbers. Filters: account_id, "status.in" (active, disabled, canceled), "ach_debit_status.in", created_at, idempotency_key, limit, cursor.
list-account-statements
fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map
GET /account_statements: one page of monthly Account Statements. Filters: account_id, statement_period_start: {after, before, on_or_after, on_or_before}, limit, cursor. Each statement's file_id names the PDF (fetch it with /files/{file_id}).
list-accounts
fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map
GET /accounts: one page of Accounts ({data, next_cursor}). Filters:
entity_id, informational_entity_id, program_id, "status.in"
(["open"], ["closed"]), created_at: {after, before, on_or_after, on_or_before}, idempotency_key, plus limit (max 100) and cursor.
Use ::increase::api/collect-all("/accounts", params) for every page.
Example
page ::increase::accounts/list-accounts({"status.in": ["open"], limit: 10})
update-account
fn (account-id: Str, params: Map): Map
fn (account-id: Str, params: Map, opts: Map): Map
PATCH /accounts/{account_id}: rename an Account (name) or change a loan's loan: {credit_limit}.
update-account-number
fn (account-number-id: Str, params: Map): Map
fn (account-number-id: Str, params: Map, opts: Map): Map
PATCH /account_numbers/{account_number_id}: change name, status ("active", "disabled", "canceled"; canceling is permanent), inbound_ach or inbound_checks.