Get financial account number

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

ParameterTypeRequiredDescription
profileIdinteger (int32)NoThe 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):

FieldTypeDescription
idstringUnique identifier of the financial account.
namestringDisplay name of the financial account.
createdstring (date-time)ISO 8601 timestamp indicating when the account was created.
accountStatusstringCurrent status of the financial account (e.g., ACTIVE, SUSPENDED, CLOSED).
nodeobjectNested object containing the restricted account number details (see below).

node object (bank.client.financialaccount.noderestricteddetails):

FieldTypeDescription
idstringInternal node identifier for the financial account.
restrictedDetailsobjectObject containing the actual account number and routing number (see below).

node.restrictedDetails object (bank.client.financialaccount.restricteddetailsdata):

FieldTypeDescription
typenamestringType classification of the account (e.g., CHECKING, SAVINGS).
numberstringThe full financial account number. Handle with care — treat as sensitive PII.
routingNumberstringThe 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

CodeWhen it happens
400Missing required fields or validation error
401Token missing, expired, or invalid
403Insufficient permissions
404Resource not found
500Internal server error

Common Mistakes

  • Passing a profileId that 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 authentication
  • POST /api/auth/refresh — Refresh an expiring Bearer token
  • GET /netevia/financialAccount — List financial accounts for a customer profile
  • POST /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"
Query Params
int32
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Response

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json