Returns: payments sent back by the receiving bank (against your payment orders) and returns you send for incoming payments. Return objects can hold corrected account and routing numbers: don't log them.
Functions
create-return
fn (params: Map, opts: Map): Map
POST /api/returns: return an incoming payment to its sender. params needs returnable_id (an incoming payment detail id) and returnable_type ("incoming_payment_detail"); optional code (e.g. "R10"), reason, date_of_death, additional_information, data. Sends money back: needs an idempotency-key.
get-return
fn (return-id: Str): Map
fn (return-id: Str, opts: Map): Map
GET /api/returns/{id}: retrieve a return (code, e.g. "R01", reason, status).
list-returns
fn (): Map
fn (params: Map): Map
fn (params: Map, opts: Map): Map
GET /api/returns: one page. Filters: returnable_id, returnable_type ("payment_order", "incoming_payment_detail", "reversal", "return"), internal_account_id, counterparty_id, per_page, after_cursor.