The ledger of an account: Transactions (settled, immutable movements
of money), Pending Transactions (holds and in-flight transfers, which
reduce the available balance) and Declined Transactions (attempts
Increase refused, such as a declined card authorization or a
returned inbound ACH). Amounts are in the minor unit (cents); each
object's source says what produced it.
Functions
get-declined-transaction
fn (declined-transaction-id: Str): Map
fn (declined-transaction-id: Str, opts: Map): Map
GET /declined_transactions/{declined_transaction_id}: retrieve a Declined Transaction.
Example
declined ::increase::transactions/get-declined-transaction("declined_transaction_17jbn0yyhvkt4v4ooym8")
declined.amount
declined.source
get-pending-transaction
fn (pending-transaction-id: Str): Map
fn (pending-transaction-id: Str, opts: Map): Map
GET /pending_transactions/{pending_transaction_id}: retrieve a Pending Transaction.
Example
pending ::increase::transactions/get-pending-transaction("pending_transaction_k1sfetcau2qbvjbzgju4")
pending.status
pending.amount
get-transaction
fn (transaction-id: Str): Map
fn (transaction-id: Str, opts: Map): Map
GET /transactions/{transaction_id}: retrieve a Transaction.
Example
transaction ::increase::transactions/get-transaction("transaction_uyrp7fld2ium70oa7oi")
transaction.amount
transaction.source
list-declined-transactions
fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map
GET /declined_transactions: one page of Declined Transactions. Filters:
account_id, route_id, "category.in", created_at, limit,
cursor.
Example
page ::increase::transactions/list-declined-transactions({account_id: "account_in71c4amph0vgo2qllky", limit: 25})
map(page.data, %.id)
list-pending-transactions
fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map
GET /pending_transactions: one page of Pending Transactions. Filters:
account_id, route_id, "category.in", "status.in" (pending,
complete), created_at, limit, cursor.
Example
page ::increase::transactions/list-pending-transactions({account_id: "account_in71c4amph0vgo2qllky", "status.in": ["pending"]})
map(page.data, %.id)
list-transactions
fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map
GET /transactions: one page of Transactions, newest first. Filters:
account_id, route_id (an account number or card id),
"category.in" (e.g. ["ach_transfer_intention", "card_settlement"]),
created_at: {after, before, on_or_after, on_or_before}, limit,
cursor.
Example
recent ::increase::transactions/list-transactions({account_id: "account_in71c4amph0vgo2qllky", limit: 25})