Skip to main content

List Accounts


Overview

You can retrieve all accounts that meet a requested criteria by using the List Account API.

Data Latency

Account List API will return data with a latency of 30 minutes.


Resource Access

Production (api.ahrvo.network)

POST https://api.ahrvo.network/banking/us2/v1/account/list

Staging (gateway.ahrvo.network)

POST https://gateway.ahrvo.network/banking/us2/v1/account/list

Authentication

HeaderDescription
AuthorizationBearer {JWT token}
x-api-keyYour API key
Content-Typeapplication/json

Supported Filter Criteria

The requested criteria can be a combination of one or more of the following fields:

FilterSupported Operators
ideq, ne, in, gt, gte, lt, lte
externalIdeq, ne, in
statuseq, in
createdOneq, gt, gte, lt, lte
createdByeq
lastUpdatedOneq, gt, gte, lt, lte
lastUpdatedByeq
owner.typeeq — Possible values: PROGRAM_MANAGER, CUSTOMER
routableAccountNumbereq, in

Sorting Fields

You can sort data using the following fields:

FieldDescription
idSort by account ID
createdOnSort by creation date
lastUpdatedOnSort by last update date

Example Request

List All Active Accounts

POST /banking/us2/v1/account/list HTTP/1.1
Host: api.ahrvo.network
Authorization: Bearer {placeholder("JWT token")}
x-api-key: {placeholder("your-api-key")}
Content-Type: application/json
{
"sortOptions": {
"sortBy": "createdOn",
"sortOrder": "DESC"
},
"criteria": {
"filters": [
{
"operator": "eq",
"key": "status",
"values": [
"ACTIVE"
]
}
]
}
}

Example Response

{
"totalCount": 2331,
"returnedCount": 1,
"pageNumber": 1,
"offset": 4008907,
"hasMore": "true",
"resources": [
{
"resourceName": "account",
"url": "/v1/customer/id/4213479/account/id/4009308",
"id": 4009308,
"externalId": "New_Acc_Virtual_Card",
"accountNumber": "8125000200005621",
"status": "ACTIVE",
"statusReason": "ACTIVATED_BY_SYSTEM",
"statusDate": "09/14/2023 06:09:46",
"balance": {
"amount": "0.00",
"asOn": "09/14/2023 11:20:04"
},
"purpose": "CHECKING",
"routableAccount": {
"accountNumber": "76650000004347",
"routingNumber": "053101561",
"wireRoutingNumber": "122287251",
"wireAccountNumber": "13976650000004347",
"wireMemo": " Alex Johnson 13976650000004347",
"memo": " Alex Johnson 76650000004347"
},
"createdOn": "09/14/2023 06:09:46",
"createdBy": {
"username": "DEFAULT_USER",
"status": "ACTIVE",
"userType": "INTERNAL"
},
"lastUpdatedBy": {
"username": "DEFAULT_USER",
"status": "ACTIVE",
"userType": "INTERNAL"
},
"lastUpdatedOn": "09/14/2023 06:09:46",
"isCustomerOwned": false,
"nickName": "New_Acc_Virtual_Card",
"activationDate": "09/14/2023 06:09:46",
"isPrimary": true
}
]
}

Response Fields

FieldTypeDescription
totalCountintegerTotal number of matching accounts
returnedCountintegerNumber of accounts returned in this page
pageNumberintegerCurrent page number
offsetintegerOffset for pagination
hasMorestringWhether more results are available
resourcesarrayArray of account objects

Response Status

HTTP Status: 200 OK

Important Notes

Data Latency

The Account List API returns data with a latency of 30 minutes. Recently created or updated accounts may not appear immediately in results.

Pagination

Use the offset and pageNumber fields to paginate through large result sets. The hasMore field indicates whether additional pages are available.

Filter Operators
  • eq — equals
  • ne — not equals
  • in — in a list of values
  • gt / gte — greater than / greater than or equal
  • lt / lte — less than / less than or equal

Interactive API Explorer