Skip to main content
GET
/
v1
/
account_number
List all Account Numbers
curl --request GET \
  --url https://api.sandbox.lead.bank/v1/account_number \
  --header 'Authorization: Bearer <token>'
{
  "objects": [
    {
      "id": "account_number_xyz",
      "account_number": 123412341234,
      "routing_number": 123456789,
      "account_id": "account_xyz123",
      "client_customer_id": "<your_customer_id>",
      "entity_id": "entity_xyz123",
      "status": "active",
      "ach_controls": {
        "originator_id": "originator_xyz123",
        "incoming": {
          "accept_credit": true,
          "accept_debit": true,
          "counterparty_filter": "accept_all",
          "counterparty_company_ids_allowlist": [
            1234567890
          ]
        },
        "outgoing": {
          "counterparty_filter": "accept_all",
          "counterparty_account_numbers_allowlist": [
            {
              "type": "us_domestic",
              "account_number": 123412341234,
              "routing_number": 123412341234
            }
          ]
        }
      },
      "wire_controls": {
        "incoming": {
          "counterparty_filter": "accept_all",
          "counterparty_account_numbers_allowlist": [
            {
              "type": "us_domestic",
              "account_number": 123412341234,
              "routing_number": 123412341234
            }
          ]
        },
        "outgoing": {
          "counterparty_filter": "accept_all",
          "counterparty_account_numbers_allowlist": [
            {
              "type": "us_domestic",
              "account_number": 123412341234,
              "routing_number": 123412341234
            }
          ]
        }
      },
      "internal_transfer_controls": {
        "incoming": {
          "counterparty_filter": "accept_all",
          "counterparty_account_number_ids_allowlist": [
            "account_number_xyz123"
          ]
        },
        "outgoing": {
          "counterparty_filter": "accept_all",
          "counterparty_account_number_ids_allowlist": [
            "account_number_xyz123"
          ]
        }
      },
      "metadata": {},
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "has_more": true
}

Authorizations

Authorization
string
header
required

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

Query Parameters

account_id
string

The ID of the account.

Pattern: ^account_\w+$
account_number
string

The account number.

limit
integer
default:10

Maximum number of objects to be returned.

Required range: 1 <= x <= 100
starting_after
string

The ID of the account number to start the list after.

Pattern: ^account_number_\w+$
ending_before
string

The ID of the account number to end the list before.

Pattern: ^account_number_\w+$

Response

200 - application/json

List of Account Numbers

objects
object[]
required
has_more
boolean
required

Indicates if there are more account numbers to retrieve.