Skip to main content

Retrieve Account by ID


Overview

You can retrieve information for a specific account by using the GET method, as described below. The response structure varies based on the account type.


Resource Access

Production (api.ahrvo.network)

GET https://api.ahrvo.network/banking/us2/v1/customer/id/{customerId}/account/id/{accountId}

Staging (gateway.ahrvo.network)

GET https://gateway.ahrvo.network/banking/us2/v1/customer/id/{customerId}/account/id/{accountId}

Authentication

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

Path Parameters

ParameterTypeDescription
customerIdintegerInternal customer ID
accountIdintegerInternal account ID

Response Fields

FieldTypeDescription
resourceNamestringResource type (account)
urlstringURL to the account resource
idintegerInternal account ID
externalIdstringClient-defined external identifier
tagsarrayArray of labels
metaDataobjectCustom key-value metadata pairs
accountNumberstringAccount number
statusstringAccount status (ACTIVE, INACTIVE, PENDING_VERIFICATION, CLOSED)
statusReasonstringReason for the current status
statusDatestringDate of the last status change
balanceobjectCurrent balance (amount, asOn)
actualBalanceobjectActual balance (amount, asOn)
availableBalanceobjectAvailable balance (amount, asOn)
advanceBalanceobjectAdvance balance (amount, asOn)
holdBalanceobjectHold balance (amount, asOn)
purposestringAccount purpose
configurationobjectAccount configuration (sweep, credit, debit)
routableAccountobjectRoutable account details
routableAccount.accountNumberstringRoutable account number
routableAccount.routingNumberstringACH routing number
routableAccount.wireRoutingNumberstringWire routing number
routableAccount.wireAccountNumberstringWire account number
routableAccount.wireMemostringWire memo
routableAccount.memostringMemo
linkedDocumentarrayLinked documents
createdOnstringCreation timestamp
createdByobjectUser who created the account
lastUpdatedOnstringLast update timestamp
lastUpdatedByobjectUser who last updated the account
isCustomerOwnedbooleanWhether the account is customer-owned
nickNamestringAccount nickname
activationDatestringAccount activation date
typestringAccount type (CHECKING, CASH_BUILDER_PLUS)
titlestringAccount title
isPrimarybooleanWhether this is the primary account
totalCreditobjectTotal credit (amount, asOn)
totalDebitobjectTotal debit (amount, asOn)

Example Request

GET /banking/us2/v1/customer/id/4052981/account/id/4024062 HTTP/1.1
Host: api.ahrvo.network
Authorization: Bearer {placeholder("JWT token")}
x-api-key: {placeholder("your-api-key")}
Content-Type: application/json

Example Responses

CHECKING Account

{
"resourceName": "account",
"url": "v1/customer/id/4007649/account/id/4006389",
"id": 4006389,
"tags": ["Customer"],
"externalId": "ET2342342",
"metaData": {
"label": "deposit"
},
"accountNumber": "8125000200002212",
"status": "ACTIVE",
"statusReason": "VERIFIED",
"statusDate": "11/12/2024 05:17:37",
"balance": {
"amount": "0.00",
"asOn": "11/12/2024 05:17:47"
},
"actualBalance": {
"amount": "0.00",
"asOn": "11/12/2024 05:17:47"
},
"availableBalance": {
"amount": "0.00",
"asOn": "11/12/2024 05:17:47"
},
"advanceBalance": {
"amount": "0",
"asOn": "11/12/2024 05:17:47"
},
"holdBalance": {
"amount": "0.00",
"asOn": "11/12/2024 05:17:47"
},
"purpose": "Checking",
"configuration": {
"sweep": {
"enable": false
},
"credit": {
"realizationInterval": {
"ach": 2,
"card": 1,
"check": 1
},
"statementDescriptor": {
"ach": {
"companyName": "JRT",
"companyDescription": "JR"
},
"card": {
"descriptor": "JR pvt ltd"
}
},
"quickSettle": {
"ach": false,
"check": false
},
"velocity": {
"transactionLimit": {
"totalCount": "100",
"totalAmount": "100000.00",
"methodControl": {
"ach": {
"totalCount": "100",
"totalAmount": "100000.00"
},
"card": {
"totalCount": "100",
"totalAmount": "100000.00"
},
"check": {
"totalCount": "100",
"totalAmount": "100000.00"
}
}
}
}
},
"debit": {
"statementDescriptor": {
"ach": {
"companyName": "JRT",
"companyDescription": "JR"
},
"wire": {
"originator": "JRT"
}
},
"checkProcessing": {
"defaultRemittanceTemplate": {
"id": 50
}
},
"velocity": {
"transactionLimit": {
"totalCount": "10",
"totalAmount": "1000.00",
"methodControl": {
"ach": {
"totalCount": "10",
"totalAmount": "1000.00"
},
"check": {
"totalCount": "10",
"totalAmount": "1000.00"
},
"wire": {
"totalCount": "10",
"totalAmount": "1000.00"
},
"internationalWire": {
"totalCount": "10",
"totalAmount": "1000.00"
},
"virtualCard": {
"totalCount": "10",
"totalAmount": "1000.00"
}
}
}
}
}
},
"routableAccount": {
"accountNumber": "76650000006670",
"routingNumber": "053101561",
"wireRoutingNumber": "122287251",
"wireAccountNumber": "200000241808",
"wireMemo": "Radhika Jassal 13976650000006670",
"memo": "Radhika Jassal 76650000006670"
},
"spaaVersionId": 4,
"privacyPolicy": "BOI",
"linkedDocument": [
{
"id": 22585,
"purpose": "AUTHORIZATION",
"status": "VERIFIED",
"document": {
"resourceName": "document",
"url": "/v1/document/id/4020651",
"id": 4020651,
"type": "SPAA",
"name": "abc.pdf"
},
"linkedOn": "09/26/2024 13:19:37",
"linkedBy": {
"userType": "API_USER",
"username": "qa+566688651394@ahrvo.com",
"status": "ACTIVE"
}
}
],
"createdOn": "09/26/2024 13:19:37",
"createdBy": {
"userType": "API_USER",
"username": "qa+566688651394@ahrvo.com",
"status": "ACTIVE"
},
"lastUpdatedBy": {
"userType": "INTERNAL",
"username": "DEFAULT_USER",
"status": "ACTIVE"
},
"lastUpdatedOn": "11/12/2024 05:17:37",
"isCustomerOwned": true,
"nickName": "Jassal",
"activationDate": "11/11/2024 06:06:43",
"type": "CHECKING",
"title": "Radhika Jassal",
"isPrimary": true,
"totalCredit": {
"amount": "0.00",
"asOn": "11/12/2024 05:17:47"
},
"totalDebit": {
"amount": "0.00",
"asOn": "11/12/2024 05:17:47"
}
}

CASH_BUILDER_PLUS Account

{
"resourceName": "account",
"url": "v1/customer/id/4049115/account/id/4034448",
"id": 4034448,
"accountNumber": "8125000200011747",
"status": "ACTIVE",
"statusReason": "Auto-activated by System",
"statusDate": "06/26/2024 09:37:34",
"balance": {
"amount": "0.00",
"asOn": "06/26/2024 10:00:42"
},
"actualBalance": {
"amount": "0.00",
"asOn": "06/26/2024 10:00:42"
},
"advanceBalance": {
"amount": "0",
"asOn": "06/26/2024 10:00:42"
},
"holdBalance": {
"amount": "0",
"asOn": "06/26/2024 10:00:42"
},
"linkedDocument": [
{
"id": 134011,
"purpose": "AUTHORIZATION",
"status": "VERIFIED",
"document": {
"resourceName": "document",
"url": "/v1/document/id/4119123",
"id": 4119123,
"type": "CASH_BUILDER_PLUS_ACCOUNT_AGREEMENT",
"name": "spaa-blank.pdf"
},
"linkedOn": "06/26/2024 09:24:29",
"linkedBy": {
"userType": "INTERNAL",
"username": "DEFAULT_USER",
"status": "ACTIVE"
}
}
],
"createdOn": "06/26/2024 09:24:29",
"createdBy": {
"userType": "INTERNAL",
"username": "DEFAULT_USER",
"status": "ACTIVE"
},
"lastUpdatedBy": {
"userType": "SYSTEM",
"username": "SYSTEM",
"status": "ACTIVE"
},
"lastUpdatedOn": "06/26/2024 09:37:34",
"isCustomerOwned": true,
"activationDate": "06/26/2024 09:37:34",
"type": "CASH_BUILDER_PLUS",
"title": "Davids",
"isPrimary": false,
"totalCredit": {
"amount": "0.00",
"asOn": "06/26/2024 10:00:42"
},
"totalDebit": {
"amount": "0.00",
"asOn": "06/26/2024 10:00:42"
}
}

Response Status

HTTP Status: 200 OK

Important Notes

Account Types

The response structure varies based on the account type. CHECKING accounts include additional fields like availableBalance and full configuration details, while CASH_BUILDER_PLUS accounts have a simpler structure.

Routable Account

The routableAccount object contains the ACH routing number, wire routing number, and account numbers needed for receiving funds.


Interactive API Explorer