GET
/
v1
/
businesses
/
{businessId}
/
external-accounts
curl --request GET \
  --url https://sandbox.layerfi.com/v1/businesses/{businessId}/external-accounts \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "external_account_external_id": "0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq",
    "external_account_source": "UNIT",
    "external_account_name": "My external bank account",
    "latest_balance_timestamp": {
      "external_account_external_id": "0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq",
      "external_account_source": "UNIT",
      "balance": 123,
      "at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z"
    },
    "current_ledger_balance": 123,
    "mask": "4321",
    "institution": {
      "name": "Bank of Generica",
      "logo": "iVBORw0KGgoAAAANSUhEUgAAAJgAAACYCAMAAAAvHNATAAAAYFBMVEUAAAAAC1ETC"
    },
    "connection_needs_repair_as_of": "2023-11-07T05:31:56Z",
    "ledger_account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  }
]

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

Content-Type
string

Content-Type must be set to application/json

Path Parameters

businessId
string
required

The UUID of the business to fetch external accounts for.

Response

200
application/json
id
string

Unique identifier for the external account

external_account_external_id
string

Unique ID of the external account in an external system for linking and idempotency.

Example:

"0Br385JmgbTryJn8nEBnUb4A5ydv06U9Vbqqq"

external_account_source
enum<string>

Source of the external account.

Available options:
UNIT,
PLAID,
API,
STRIPE,
CUSTOM
external_account_name
string

Name of the external account

Example:

"My external bank account"

latest_balance_timestamp
object

The latest balance timestamp

current_ledger_balance
integer

Current ledger balance of the external account in cents

mask
string | null

Last 4 digits of the external account number

Example:

"4321"

institution
object

The institution that the external account is associated with.

connection_needs_repair_as_of
string | null

Timestamp indicating when the connection started needing repair

ledger_account_id
string | null

The ID of the ledger account associated with the external account