Real-Time Payments transfers over The Clearing House RTP network: instant, final, available around the clock. The receiving bank must be on RTP (check with /routing_numbers). Use require_approval: true.

Functions

approve-rtp-transfer

fn (transfer-id: Str): Map
fn (transfer-id: Str, opts: Map): Map

POST /real_time_payments_transfers/{id}/approve: approve a Real-Time Payments 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::rtp-transfers/approve-rtp-transfer("real_time_payments_transfer_uoxatyh3lt5evrsdvo7q")
transfer.status

cancel-rtp-transfer

fn (transfer-id: Str): Map
fn (transfer-id: Str, opts: Map): Map

POST /real_time_payments_transfers/{id}/cancel: cancel a Real-Time Payments Transfer that is still pending_approval.

Example

transfer ::increase::rtp-transfers/cancel-rtp-transfer("real_time_payments_transfer_uoxatyh3lt5evrsdvo7q")
transfer.status

create-rtp-transfer

fn (params: Map, opts: Map): Map

POST /real_time_payments_transfers: create a Real-Time Payments 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 amount, creditor_name, source_account_number_id, unstructured_remittance_information.

The destination is external_account_id or account_number plus routing_number. Optional: debtor_name, ultimate_creditor_name, ultimate_debtor_name, inbound_real_time_payments_request_for_payment_id.

Example

::increase::rtp-transfers/create-rtp-transfer({
  source_account_number_id: "account_number_v18nkfqm6afpsrvy82b2",
  external_account_id: "external_account_ukk55lr923a3ac0pp7iv",
  amount: 5000,
  creditor_name: "Ian Crease",
  unstructured_remittance_information: "Invoice 42",
  require_approval: true
}, {idempotency-key: "invoice-42-rtp"})

Set require_approval: true (or the increase.transfers.require-approval context variable) so a person approves the transfer before it is sent.

get-rtp-transfer

fn (transfer-id: Str): Map
fn (transfer-id: Str, opts: Map): Map

GET /real_time_payments_transfers/{id}: retrieve a Real-Time Payments Transfer.

Example

transfer ::increase::rtp-transfers/get-rtp-transfer("real_time_payments_transfer_uoxatyh3lt5evrsdvo7q")
transfer.status
transfer.amount

list-rtp-transfers

fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map

GET /real_time_payments_transfers: one page of Real-Time Payments 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::rtp-transfers/list-rtp-transfers({account_id: "account_in71c4amph0vgo2qllky", "status.in": ["pending_approval"], limit: 25})
map(page.data, %.id)