Get Financial Account Number
This endpoint retrieves the financial account number and routing number for one or more financial accounts linked to a specified customer profile. It provides secure, authenticated access to sensitive account identifiers required for transactions and account management operations. Only authorized users with a valid Bearer token may access this information.
Endpoint
GET /netevia/financialAccount/number
Authentication
Bearer token required. Obtain via:
POST https://api.banking.netevia.dev/api/auth/v2
Include in header: Authorization: Bearer {token}
Token lifetime: 10 minutes. Refresh via POST /api/auth/refresh.
When to use
Use this endpoint when you need to retrieve the full account number and routing number for a customer's financial account — for example, to prefill wire transfer details, set up ACH payments, or display account information within a partner application. This is typically called after a financial account has been created and verified. Because account numbers are sensitive, always ensure the requesting user is properly authenticated and authorized before surfacing the returned values in any UI.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| profileId | integer (int32) | No | The numeric identifier of the customer profile whose financial account numbers should be retrieved. Omitting this parameter may return accounts for the authenticated user's default profile. |
Response
200 OK
Returns an array of financial account objects, each containing restricted account details.
Top-level array item (bank.client.financialaccount.restricteddetails):
| Field | Type | Description |
|---|---|---|
| id | string | Unique identifier of the financial account. |
| name | string | Display name of the financial account. |
| created | string (date-time) | ISO 8601 timestamp indicating when the account was created. |
| accountStatus | string | Current status of the financial account (e.g., ACTIVE, SUSPENDED, CLOSED). |
| node | object | Nested object containing the restricted account number details (see below). |
node object (bank.client.financialaccount.noderestricteddetails):
| Field | Type | Description |
|---|---|---|
| id | string | Internal node identifier for the financial account. |
| restrictedDetails | object | Object containing the actual account number and routing number (see below). |
node.restrictedDetails object (bank.client.financialaccount.restricteddetailsdata):
| Field | Type | Description |
|---|---|---|
| typename | string | Type classification of the account (e.g., CHECKING, SAVINGS). |
| number | string | The full financial account number. Handle with care — treat as sensitive PII. |
| routingNumber | string | The ABA routing number associated with the account. |
[
{
"id": "fa_0987654321",
"name": "Business Checking",
"created": "2024-03-15T10:22:00Z",
"accountStatus": "ACTIVE",
"node": {
"id": "node_1122334455",
"restrictedDetails": {
"typename": "CHECKING",
"number": "XXXXXXXXXX",
"routingNumber": "021000021"
}
}
}
]Error Codes
| Code | When it happens |
|---|---|
| 400 | Missing required fields or validation error |
| 401 | Token missing, expired, or invalid |
| 403 | Insufficient permissions |
| 404 | Resource not found |
| 500 | Internal server error |
Common Mistakes
- Passing a
profileIdthat belongs to a different partner or an unauthorized customer will result in a 403 or empty response — always verify the profile belongs to the authenticated session's partner context. - Caching the returned account number or routing number in plaintext storage is a security risk; treat these values as sensitive credentials and store them encrypted.
- Forgetting to refresh the Bearer token before it expires (10-minute lifetime) will result in a 401 error mid-flow when retrieving account details.
Related Endpoints
POST /api/auth/v2— Obtain a Bearer token for authenticationPOST /api/auth/refresh— Refresh an expiring Bearer tokenGET /netevia/financialAccount— List financial accounts for a customer profilePOST /netevia/financialAccount— Create a new financial account for a customer
Example
curl -X GET "https://api.banking.netevia.dev/netevia/financialAccount/number?profileId=10045" \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json"