Account Transfers: book transfers between two of your Increase
accounts. They complete instantly unless require_approval holds them
in pending_approval.
Functions
approve-account-transfer
fn (transfer-id: Str): Map
fn (transfer-id: Str, opts: Map): Map
POST /account_transfers/{id}/approve: approve an Account Transfer in
pending_approval. Approving releases the transfer to be sent: agents
must not approve on their own; leave it to a person (in the Increase
dashboard, or through your own approval step that calls this).
Example
// Call this from a person's approval step, never from an agent.
transfer ::increase::account-transfers/approve-account-transfer("account_transfer_uoxatyh3lt5evrsdvo7q")
transfer.status
cancel-account-transfer
fn (transfer-id: Str): Map
fn (transfer-id: Str, opts: Map): Map
POST /account_transfers/{id}/cancel: cancel an Account Transfer that is
still pending_approval.
Example
transfer ::increase::account-transfers/cancel-account-transfer("account_transfer_uoxatyh3lt5evrsdvo7q")
transfer.status
create-account-transfer
fn (params: Map, opts: Map): Map
POST /account_transfers: create an Account Transfer. Moves money: opts must carry an
idempotency-key (the call errs without one and sends nothing), and
the call is never retried. params needs account_id, amount, description, destination_account_id.
Both accounts must be yours at Increase; the transfer is instant.
Example
::increase::account-transfers/create-account-transfer({
account_id: "account_in71c4amph0vgo2qllky",
destination_account_id: "account_uf16sut2ct5bevmq3eh",
amount: 100,
description: "Move to reserve",
require_approval: true
}, {idempotency-key: "reserve-2026-11"})
Set require_approval: true (or the increase.transfers.require-approval
context variable) so a person approves the transfer before it is sent.
get-account-transfer
fn (transfer-id: Str): Map
fn (transfer-id: Str, opts: Map): Map
GET /account_transfers/{id}: retrieve an Account Transfer.
Example
transfer ::increase::account-transfers/get-account-transfer("account_transfer_uoxatyh3lt5evrsdvo7q")
transfer.status
transfer.amount
list-account-transfers
fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map
GET /account_transfers: one page of Account Transfers ({data, next_cursor}). Filters: account_id, idempotency_key, created_at: {after, before, on_or_after, on_or_before}, limit, cursor.
Example
page ::increase::account-transfers/list-account-transfers({account_id: "account_in71c4amph0vgo2qllky", limit: 25})
map(page.data, %.id)