ACH Transfers over FedACH. Statuses run pending_approval (when
require_approval was set) to pending_submission, submitted, and
possibly returned days later: follow ach_transfer.updated events
rather than polling. ACH settles in one to three banking days, or the
same day with preferred_effective_date: {settlement_schedule: "same_day"}.
Functions
approve-ach-transfer
fn (transfer-id: Str): Map
fn (transfer-id: Str, opts: Map): Map
POST /ach_transfers/{id}/approve: approve an ACH 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::ach-transfers/approve-ach-transfer("ach_transfer_uoxatyh3lt5evrsdvo7q")
transfer.status
cancel-ach-transfer
fn (transfer-id: Str): Map
fn (transfer-id: Str, opts: Map): Map
POST /ach_transfers/{id}/cancel: cancel an ACH Transfer that is still
pending_approval.
Example
transfer ::increase::ach-transfers/cancel-ach-transfer("ach_transfer_uoxatyh3lt5evrsdvo7q")
transfer.status
create-ach-transfer
fn (params: Map, opts: Map): Map
POST /ach_transfers: create an ACH 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, statement_descriptor.
The destination is either external_account_id or account_number
plus routing_number. A positive amount (cents) is a credit (push);
a negative one is a debit (pull), which needs ACH debit approval on
the program. Other fields: individual_name, individual_id,
company_name, company_entry_description,
standard_entry_class_code, funding, destination_account_holder,
preferred_effective_date: {date, settlement_schedule}, addenda.
Example
::increase::ach-transfers/create-ach-transfer({
account_id: "account_in71c4amph0vgo2qllky",
external_account_id: "external_account_ukk55lr923a3ac0pp7iv",
amount: 10000,
statement_descriptor: "Invoice 42",
require_approval: true
}, {idempotency-key: "invoice-42-payout"})
Set require_approval: true (or the increase.transfers.require-approval
context variable) so a person approves the transfer before it is sent.
get-ach-transfer
fn (transfer-id: Str): Map
fn (transfer-id: Str, opts: Map): Map
GET /ach_transfers/{id}: retrieve an ACH Transfer.
Example
transfer ::increase::ach-transfers/get-ach-transfer("ach_transfer_uoxatyh3lt5evrsdvo7q")
transfer.status
transfer.amount
list-ach-transfers
fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map
GET /ach_transfers: one page of ACH Transfers ({data, next_cursor}).
Filters: account_id, external_account_id, "status.in",
idempotency_key, created_at: {after, before, on_or_after, on_or_before}, limit, cursor.
Example
page ::increase::ach-transfers/list-ach-transfers({account_id: "account_in71c4amph0vgo2qllky", "status.in": ["pending_approval"], limit: 25})
map(page.data, %.id)