Incoming payment details: payments arriving at your internal accounts (ACH credits and debits, wires, RTP, checks, ...) as Modern Treasury learns of them, before and after they post. They carry the originator's account details: don't log them. Follow incoming_payment_detail.* webhooks.
Functions
get-incoming-payment-detail
fn (incoming-payment-detail-id: Str): Map
fn (incoming-payment-detail-id: Str, opts: Map): Map
GET /api/incoming_payment_details/{id}: retrieve an incoming payment detail.
Example
detail ::modern-treasury::incoming-payment-details/get-incoming-payment-detail("6d2e8b14-3a7f-49c1-8e06-f4b1a9d3c572")
detail.status
list-incoming-payment-details
fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map
GET /api/incoming_payment_details: one page. Filters: type,
direction, status ("pending", "completed", "returned",
"failed", "held"), subtype, virtual_account_id,
as_of_date_start, as_of_date_end, metadata, per_page,
after_cursor.
Example
page ::modern-treasury::incoming-payment-details/list-incoming-payment-details({status: "pending", direction: "credit"})
map(page.items, %.amount)
update-incoming-payment-detail
fn (incoming-payment-detail-id: Str, metadata: Map): Map
fn (incoming-payment-detail-id: Str, metadata: Map, opts: Map): Map
PATCH /api/incoming_payment_details/{id}: set metadata (the only
writable field).
Example
::modern-treasury::incoming-payment-details/update-incoming-payment-detail("6d2e8b14-3a7f-49c1-8e06-f4b1a9d3c572", {invoice_id: "42"})