Unit.API.Institutions (Unit v1.0.0)

Copy Markdown View Source

API module for the Unit Institutions lookup.

Look up a US financial institution by routing number to confirm it supports ACH, Wire, or RTP before initiating a payment.

Summary

Functions

Look up an institution by routing number.

Functions

get(routing_number, opts \\ [])

@spec get(
  String.t(),
  keyword()
) :: {:ok, Unit.Resource.Institution.t()} | {:error, term()}

Look up an institution by routing number.

Returns the institution name and supported payment rails. Returns {:error, %Unit.Error{type: :not_found}} for unknown routing numbers.